SELECT id FROM airport WHERE name = "Akureyri Airport" AND "id" = 2 AND ICAO = "EHAM" OR Country = "Denmark" OR IATA = "AMS" OR City != "Amsterdam" UNION SELECT id FROM flight WHERE "id" > 7 OR "airport_id" >= 4 OR "Altitude" = 3650.0 AND Pilot != "Thompson" AND "company_id" != 5 <table_name> : airport col : id | City | Country | IATA | ICAO | name row 1 : 1 | Akureyri | Iceland | AEY | BIAR | Akureyri Airport row 2 : 2 | Amsterdam | Netherlands | AMS | EHAM | Schiphol Airport row 3 : 3 | Anchorage | United States | ANC | PANC | Ted Stevens Airport row 4 : 4 | Baltimore | United States | BWI | KBWI | Baltimore-Washington Airport row 5 : 5 | Barcelona | Spain | BCN | LEBL | El Prat Airport row 6 : 6 | Bergen | Norway | BGO | ENBR | Bergen Airport row 7 : 7 | Billund | Denmark | BLL | EKBI | Billund Airport row 8 : 8 | Boston | United States | BOS | KBOS | Logan International Airport row 9 : 9 | Brussels | Belgium | BRU | EBBR | National Airport <table_name> : flight col : id | Vehicle_Flight_number | Date | Pilot | Velocity | Altitude | airport_id | company_id row 1 : 1 | M2-F1 #0 | March 1, 1963 | Thompson | 135.0 | 0.0 | 1 | 2 row 2 : 2 | M2-F1 #1 | August 16, 1963 | Thompson | 240.0 | 3650.0 | 2 | 3 row 3 : 3 | M2-F1 #6 | September 3, 1963 | Thompson | 240.0 | 3650.0 | 2 | 4 row 4 : 4 | M2-F1 #13 | October 25, 1963 | Thompson | 240.0 | 3650.0 | 3 | 4 row 5 : 5 | M2-F1 #14 | November 8, 1963 | Thompson | 240.0 | 3650.0 | 4 | 5 row 6 : 6 | M2-F1 #21 | January 29, 1964 | Thompson | 240.0 | 3650.0 | 4 | 6 row 7 : 7 | M2-F1 #33 | March 30, 1964 | Peterson | 240.0 | 3650.0 | 5 | 11 row 8 : 8 | M2-F1 #39 | May 19, 1964 | Peterson | 240.0 | 3650.0 | 2 | 13 row 9 : 9 | M2-F1 #61 | July 16, 1965 | Thompson | 240.0 | 3650.0 | 6 | 11 row 10 : 10 | M2-F1 #64 | August 30, 1965 | Thompson | 240.0 | 3650.0 | 9 | 1 row 11 : 11 | M2-F1 #70 | October 8, 1965 | Thompson | 240.0 | 3650.0 | 4 | 5 row 12 : 12 | M2-F1 #71 | March 28, 1966 | Thompson | 240.0 | 3650.0 | 6 | 7 row 13 : 13 | M2-F1 #73 | August 4, 1966 | Peterson | 240.0 | 3650.0 | 8 | 9
col : id row 1 : 1 row 2 : 2 row 3 : 3 row 4 : 4 row 5 : 5 row 6 : 6 row 7 : 7 row 8 : 8 row 9 : 9 row 10 : 10 row 11 : 11 row 12 : 12 row 13 : 13