Input: What is Brendan Canty's occupation?

Answer: ["composer", "musician", "musical artist"]


Input: What is David J. Brown's occupation?

Answer: ["computer scientist"]


Input: What is the name of the Chief Justice of the country the Awutu Senya District is located?

Answer: Sophia Akuffo


Input: What is Clement Baker's occupation?

Answer: ["politician", "political leader", "political figure", "polit.", "pol"]


Input: Which incident escalated US involvement in Vietnam?

Answer: Tonkin Gulf incident

Answer: The Gulf Of Tonkin Incident

Answer: Tonkin incident

Answer: Maddox incident

Answer: Gulf of Tonkin (1964)

Answer: Tonkin Gulf Incident

Answer: USS Maddox incident

Answer: Gulf of Tonkin Incident

Answer: Tonkin Bay Incident

Answer: Gulf of tonkin incident

Answer: Gulf of Tonkin incident


Input: Last season, who scored the first goal for the team which Dale Jasper had played for?

Answer: Bertrand Traoré


Input: Who was born first, Odysseas Elytis or Cornel West?

Answer: Odysseas Elytis


Input: By what name is the brahmaputra known in both Bangladesh and the region where Nawang Khechog was born?

Answer: Tsangpo - Brahmaputra


Input: When is the director of film Buried Treasure (1921 Film) 's birthday?

Answer: April 22, 1868


Input: When did the state where WWZD-FM broadcasts become part of the U.S.?

Answer: Dec. 10, 1817


Input: Puklo srce is an album by a singer who lives where?

Answer: Belgrade


Input: What is Abdirizak Haji Hussein's occupation?

Answer: ["diplomat", "politician", "political leader", "political figure", "polit.", "pol"]


Input: New Faces of 1952 is a musical revue with songs and comedy skits, it helped jump start the career of which young performer, and American actress?

Answer: Carol Lawrence


Input: In which country is Walnut Corner in the county where Whitewater is located in the state where Shotgun Stories takes place?

Answer: U.S.


Input: In what city was Maurice El Mediouni born?

Answer: ["Oran", "Wahran"]


Input: Are the directors of both films Mayuri (Film) and California (1947 Film) from the same country?

Answer: no


Input: Write a function to convert tuple string to integer tuple.

Answer:
def tuple_str_int(test_str):
  res = tuple(int(num) for num in test_str.replace('(', '').replace(')', '').replace('...', '').split(', '))
  return (res)


Input: What is William Australia Graham's occupation?

Answer: ["farmer", "agriculturist", "grower", "raiser", "cultivator", "agriculturer", "farmer (occupation)", "politician", "political leader", "political figure", "polit.", "pol"]


Input: What nationality is the director of film For The Love Of Rusty?

Answer: American


Input: In what city was Juha Jokela born?

Answer: ["Tampere", "Tammerfors"]


Input: What is Harvey Benge's occupation?

Answer: ["photographer", "photog", "photographers"]


Input: What is Karol Życzkowski's occupation?

Answer: ["physicist", "mathematician"]


Input: "According to hippy guru Dr. Timothy Leary, what did you do before you ""drop out?"""

Answer: Turn on, tune in


Input: Martha Graham was an American modern dancer and choreographer, her style, reshaped American dance and is still taught worldwide, the Graham technique, is a modern dance movement style, and pedagogy created by the American dancer and choreographer Martha Graham, born on which date?

Answer: May 11, 1894


Input: In what city was Vitaly Arkhangelsky born?

Answer: ["Almaty", "Алматы", "Almatı", "Alma-Ata", "City of Almaty"]


Input: What is Harold Lever, Baron Lever of Manchester's occupation?

Answer: ["politician", "political leader", "political figure", "polit.", "pol"]


Input: In what city was Alfred Jefferis Turner born?

Answer: ["Guangzhou", "Canton", "Kwangchow", "Kwongchow"]


Input: Who founded A&T state university located in the state containing the city where the individual who was governor during the Civil War died?

Answer: North Carolina General Assembly


Input: In what city was Aki Hata born?

Answer: ["Tokyo", "Tōkyō", "Tôkyô", "Tokyo-to", "Tokyo Metropolitan prefecture", "Tōkyō-to", "Tôkyô-to", "Tokyo Metropolis", "Tokio", "Tokyo Prefecture"]


Input: who starred in the original movie the magnificent seven

Answer: Yul Brynner


Input: What was the location of the WWI German campaign in the country containing the city of Léua?

Answer: Portuguese Angola


Input: Golfer Bobby Jones was born in which state?

Answer: Western Georgia

Answer: Georgia (song)

Answer: Georgia

Answer: Georgia (Disambiguation)

Answer: Georgia (film)

Answer: Georgia (State)

Answer: Geordia

Answer: Georgia (disambiguation)

Answer: Georgia (state)

Answer: Goergia


Input: What type of university is the school that employs Endre Boros, an instance of?

Answer: land-grant university


Input: In what city was Bert Myers born?

Answer: ["Frederick", "Frederick, Maryland", "Frederick, MD"]


Input: Abeliophyllum and Brillantaisia, are types of what?

Answer: plants


Input: What is Rhea Silvia's occupation?

Answer: ["Vestal Virgin"]


Input: In the draft of the 2017–18 Phoenix Suns season, The Phoneix Suns picked which player that played one season for the Kansas Jayhawks?

Answer: Josh Jackson


Input: Arthur Noss won a Military Cross as the gunner of a soldier born in which year ?

Answer: 1892


Input: In what city was Edward Drinker Cope born?

Answer: ["Philadelphia", "Philly", "City of Brotherly Love", "Cradle of Liberty", "Philadelphia, Pennsylvania", "City of Philadelphia", "Philadelphia, PA"]


Input: Do both directors of films Childish Things (Film) and The Boys Didn'T Wear Hair Gel Before have the same nationality?

Answer: no


Input: Which musical featured the song I Feel Pretty?

Answer: The Sharks (West Side Story)

Answer: Gee, Officer Krupke

Answer: Westside Story

Answer: West Side Story 2008

Answer: Riff (character)

Answer: West side story

Answer: The Jets (West Side Story)

Answer: Jet Song

Answer: West Side Story

Answer: West Side Story (musical)


Input: who was the first band to play at woodstock

Answer: Richie Havens


Input: When did Ahmed Iii's father die?

Answer: 6 January 1693


Input: Write a python function to reverse an array upto a given position.

Answer:
def reverse_Array_Upto_K(input, k):
  return (input[k-1::-1] + input[k:])


Input: Where did the plane crash in the largest river of the state the character from The Terminal played by the actor of Captain Miller in Saving Private Ryan is from?

Answer: off Midtown Manhattan


Input: When is the Sturgis motorcycle rally, in the state that contains the meridian named for the hills that include the Missouri Buttes within their range?

Answer: August 3 - 12, 2018


Input: Where did the director of film An Everyday Story die?

Answer: Munich


Input: Elkhan Mammadov is the project leader for the bid for which quadrennial competition?

Answer: UEFA Euro 2020


Input: Write a function to find the index of the first occurrence of a given number in a sorted array.

Answer:
def find_first_occurrence(A, x):
    (left, right) = (0, len(A) - 1)
    result = -1
    while left <= right:
        mid = (left + right) // 2
        if x == A[mid]:
            result = mid
            right = mid - 1
        elif x < A[mid]:
            right = mid - 1
        else:
            left = mid + 1
    return result


Input: What was Gene Kelly's middle name?

Answer: Curran (disambiguation)

Answer: Curran


Input: halloween 6 who is the man in black

Answer: Wynn


Input: Which happened first Battle of Okinawa or Operation Nordwind ?

Answer: Operation North Wind


Input: when did jennifer lopez released her first single

Answer: May 1999


Input: Write a function to find if there is a triplet in the array whose sum is equal to a given value.

Answer:
def find_triplet_array(A, arr_size, sum):
	for i in range( 0, arr_size-2):
		for j in range(i + 1, arr_size-1):
			for k in range(j + 1, arr_size):
				if A[i] + A[j] + A[k] == sum:
					return  A[i],A[j],A[k]
					return True
	return False


Input: What is Edwin N. Hubbell's occupation?

Answer: ["politician", "political leader", "political figure", "polit.", "pol"]


Input: a change in which new products are formed is called a

Answer: Chemical reactions


Input: Where were the paternal grandparents of the singer with the most top ten hits from?

Answer: Pacentro, Italy


Input: What is George Minor's occupation?

Answer: ["composer"]


Input: Where did Umberto Agnelli's mother die?

Answer: Pisa


Input: Where in the former Soviet Union was Yul Brynner born?

Answer: Sziberia

Answer: Siberia, Russia (Federation)

Answer: Sibir’

Answer: Climate of Siberia

Answer: Sibir'

Answer: Siberian

Answer: Siberian steppe

Answer: Сибирской

Answer: Сибирь

Answer: East Siberia

Answer: Szibéria

Answer: Eastern Siberia

Answer: CnBnpb

Answer: Geography of Siberia

Answer: Сиби́рь

Answer: Siberia (Russia)

Answer: Siberia, Russia

Answer: Siberia

Answer: Siberian Steppe


Input: What country sent the most legal immigrants to Gotham's filming location from the middle leg of the journey from England to the continent of Bamako to the Americas?

Answer: the Dominican Republic


Input: Which award the performer of song Haunt Me received?

Answer: Grammy Award for Best New Artist


Input: which team is on top in fifa 2018

Answer: Germany


Input: Rob Jenkins is an Australian actor, which of his movies, was a 2014 science fiction thriller film?

Answer: Predestination


Input: In what city was Simon Callery born?

Answer: ["London", "London, UK", "London, United Kingdom", "London, England", "Modern Babylon"]


Input: Where did Maurice Green set his 9.79 seconds for the 100m in 1999?

Answer: Athina

Answer: Athēnai

Answer: Athens

Answer: Athénes

Answer: Атина

Answer: Atina, Greece

Answer: Municipality of Athens

Answer: Athens (municipality)

Answer: Athens, Modern Diocese of

Answer: Athens (Greece)

Answer: Capital of Greece

Answer: Athina, Greece

Answer: Athènes

Answer: GRATH

Answer: Athens, Greece

Answer: Αθήνα

Answer: Greece Athens

Answer: Gulf of Athens

Answer: Modern Athens

Answer: Athenian

Answer: Agrae

Answer: Travel athens

Answer: City of Athens

Answer: Athens Municipality

Answer: Athenes

Answer: Athenai

Answer: Ἀθῆναι

Answer: UN/LOCODE:GRATH

Answer: Athenians

Answer: Athence

Answer: Atenás

Answer: Athína

Answer: Athínai


Input: Are both directors of films The Splendid Sinner and The Convicted from the same country?

Answer: no


Input: Sam Phillips was owner of which legendary recording studio?

Answer: Structure of the Sun

Answer: Sun

Answer: Orbit of the sun

Answer: Solar X-ray astronomy

Answer: Internal structure of the Sun

Answer: The Sun

Answer: Solarian

Answer: Solar glare

Answer: Layers of the Sun

Answer: Solar photosphere

Answer: Solar atmosphere

Answer: Solar magnetic field

Answer: Sun (astronomy)

Answer: Sun gravity

Answer: Sunlike

Answer: The sun

Answer: Atmosphere of the Sun

Answer: Exploration of the Sun

Answer: Sun (song)

Answer: Sun's orbit

Answer: Local Star

Answer: Sun characteristics

Answer: Sol (star)

Answer: Sun (star)

Answer: Solar diameter

Answer: Orbit of the Sun

Answer: Local star

Answer: Earth's sun

Answer: Heliology

Answer: Watch sun directly

Answer: Parts of the sun


Input: Where was the place of death of the composer of film Kudamattam?

Answer: Chennai


Input: Where was the place of death of Ben Gage's wife?

Answer: Los Angeles


Input: What year was the city Inter caetera's author died in conquered?

Answer: 1870


Input: What is Amitabh Bachchan's occupation?

Answer: ["film producer", "movie producer", "producer", "actor", "actress", "actors", "actresses"]


Input: Which Oscar-winning actress was born on exactly the same day as actress Lindsay Wagner?

Answer: Meryl streep

Answer: Meryl Streep

Answer: Mary Streep

Answer: Streep

Answer: Mary Louise Streep

Answer: Merril Streep

Answer: Meril streep


Input: Write a function to calculate the perimeter of a regular polygon.

Answer:
from math import tan, pi
def perimeter_polygon(s,l):
  perimeter = s*l
  return perimeter

assert perimeter_polygon(4,20)==80
assert perimeter_polygon(10,15)==150
assert perimeter_polygon(9,7)==63


Input: When was the director of film The Lion'S Den (1919 Film) born?

Answer: April 22, 1868


Input: What Chilean footballer from Arsenal joined in 2018 the club that won more trophies than Liverpool

Answer: Alexis Sánchez


Input: when did the go pro hero 6 come out

Answer: September 28, 2017


Input: Are Oh Jae-Moo and Jeff Danna from the same country?

Answer: no


Input: What is Edward Corser's occupation?

Answer: ["politician", "political leader", "political figure", "polit.", "pol"]


Input: During the Ming dynasty, whose presence increased in the traditional homeland of the Monpa, Qiang, and Lhoba peoples?

Answer: the Mongols


Input: Which film came out earlier, Outer Space Jitters or The Man With The Golden Soles?

Answer: Outer Space Jitters


Input: Which country does tennis player Marcelo Rios come from?

Answer: ISO 3166-1:CL

Answer: Cxilio

Answer: Cile

Answer: Etymology of Chile

Answer: Republic of Chile

Answer: Chilean Republic

Answer: State of Chile

Answer: Chile

Answer: Name of Chile

Answer: República de Chile

Answer: Chilé


Input: How many stored does the American fast food restaurant franchise that sponsored Subway 400 have?

Answer: 45,000


Input: What is Nelson Mandela's middle name?

Answer: Nelson Mendella

Answer: Nelson mandela

Answer: Mr Mandela

Answer: Mandella

Answer: 4664

Answer: Tata Mandela

Answer: Tata Madiba

Answer: Nelson Mandella

Answer: Nelson Madela

Answer: Madiba

Answer: Rolihlahla Mandela

Answer: Rolihlahla

Answer: Black Pimpernel

Answer: Nelson Rolihlahla Mandela

Answer: Nelson mendela

Answer: Gadla Henry Mphakanyiswa

Answer: Nelson Mendela

Answer: Nelson mandeal

Answer: Zindzi Mandela

Answer: Nelson Mandela

Answer: Mandela


Input: In what city was Jacob Duck born?

Answer: ["Utrecht", "Utreg", "Utrecht (city)"]


Input: who played primrose in the darling buds of may

Answer: Abigail Rokison-Woodall


Input: who's the best selling female artist of all time

Answer: Madonna


Input: Arlette Roxburgh is best known for singing a national anthem whose lyrics come from what poem, before every New Jersey Devils home game?

Answer: Defence of Fort M'Henry


Input: What is Sırrı Süreyya Önder's occupation?

Answer: ["film director", "movie director", "director", "motion picture director", "screenwriter", "scenarist", "writer", "screen writer", "script writer", "scriptwriter", "actor", "actress", "actors", "actresses", "politician", "political leader", "political figure", "polit.", "pol"]


Input: Which African country does Nick Price come from?

Answer: Zimbobwe

Answer: Health care in Zimbabwe

Answer: Zimbabwean cultural practices

Answer: People of Zimbabwe

Answer: Republic of Zimbabwe

Answer: Zimbabwean legends

Answer: Zimbabwae

Answer: Zimbabwian

Answer: Republic Of Zimbabwe

Answer: Cuisine of Zimbabwe

Answer: Zimbabwean cuisine

Answer: ZWE

Answer: Zimbabwei

Answer: Zimbabwe

Answer: Etymology of Zimbabwe

Answer: ISO 3166-1:ZW

Answer: Republic Zimbabwe

Answer: Zimbawean

Answer: Zimbabwean

Answer: Name of Zimbabwe

Answer: Chimpabwe


Input: Who was born first, James Caan or Michael Douglas?

Answer: James Con

Answer: James Caan (actor)

Answer: James Cuhn

Answer: James Kawn

Answer: Caan, James

Answer: Sheila Marie Ryan

Answer: James Kon

Answer: James Caan

Answer: James Kaan

Answer: Jimmy Caan

Answer: James Kohn

Answer: James Konn

Answer: James Conn

Answer: James Cawn


Input: Which Lightweight division mixed martial artist founded the American Combat Association?

Answer: Kamal Shalorus


Input: What is the date of death of the director of film Brides Are Like That?

Answer: November 15, 1977


Input: Which film has the director died first, Forbidden Paths or Little Man, What Now? (1933 Film)?

Answer: Forbidden Paths


Input: When is the director of film Red Line (1959 Film) 's birthday?

Answer: 12 January 1924


Input: when does girlfriends guide to divorce season 3 start

Answer: January 11, 2017


Input: American actor, Peter Hansen, best known for his role on General Hospital, also starred in The War of the Roses with American film and stage actress and director who has won how many Golden Globe Awards?

Answer: two


Input: In what year was the English actor that starred with David Hemmings and Douglas Wilmer in "Unman, Wittering and Zigo" born?

Answer: 1945


Input: Write a function to check if any list element is present in the given list.

Answer:
def check_element(test_tup, check_list):
  res = False
  for ele in check_list:
    if ele in test_tup:
      res = True
      break
  return (res)


Input: when did the black and red jordans come out

Answer: 1984


Input: Does Alexandra Camenșcic have the same nationality as Robert Broadnax Glenn?

Answer: no


Input: Who had an 80s No 1 hit with Can't Fight This Feeling?

Answer: REO (album)

Answer: Alan Gratzer

Answer: R.E.O. Speedwagon

Answer: REO Speedwagon

Answer: Michael Bryan Murphy

Answer: Can't Stop Rockin

Answer: Reo Speedwagon

Answer: R.E.O Speedwagon


Input: What nationality is the composer of film Tulasi Dalam (Film)?

Answer: India


Input: Are Monastery of the Transfiguration, Kinaliada and Süreyya Opera House both Greek Orthodox monasteries?

Answer: no


Input: Write a function that matches a string that has an a followed by zero or more b's by using regex.

Answer:
import re
def text_match(text):
        patterns = 'ab*?'
        if re.search(patterns,  text):
                return ('Found a match!')
        else:
                return ('Not matched!')

assert text_match("msb") == 'Not matched!'
assert text_match("a0c") == 'Found a match!'
assert text_match("abbc") == 'Found a match!'


Input: Are both directors of films The Blue Bird (1940 Film) and Bharya Biddalu from the same country?

Answer: no


Input: Where was the place of death of the director of film Port Of Seven Seas?

Answer: Hollywood


Input: Are Patrick White and Katherine Anne Porter both writers?

Answer: yes


Input: Who was the voice of Matt Dillon for 11 years on radio's Gunsmoke?

Answer: Bill Conrad

Answer: William Conrad


Input: Who is the composer Howard Ashman worked with on his musical released in 1982?

Answer: Alan Menken


Input: How many house of representatives are there in the state K-28 is located?

Answer: 125 state representatives


Input: Joh Bruce Yeh founded a chamber ensemble who won a Grammy in 1985 for their recording of this work based on what Rusian folk tale?

Answer: The Runaway Soldier and the Devil


Input: How did many multiracial individuals, of the people who the Bush administration described as heroic, attain social and political advantages?

Answer: Many of majority European ancestry and appearance "married white" and assimilated into white society


Input: Who was the voice of O'Malley in The Aristocats?

Answer: Phil Harris


Input: When was the director of film Yellowstone (Film) born?

Answer: July 25, 1898


Input: What county is the city named Clayton in where residents could vote for Tom Harkin?

Answer: Clayton County


Input: In what city was Roy A. Roberts born?

Answer: ["Muscotah", "Muscotah, Kansas"]


Input: What was Bix Beiderbecke's principal musical instrument?

Answer: Kornett

Answer: Cornetist

Answer: Echo cornet

Answer: Cornettist

Answer: Cornet

Answer: Cornets


Input: The John Messer Barn is a historic structure within the Great Smoky Mountains National Park in Sevier County, Tennessee, this barn is a different Messer Barn in which valley, in the Great Smoky Mountains of North Carolina, located in the Southeastern United States?

Answer: Cataloochee


Input: In what city was Charles Plumer born?

Answer: ["Canons Park"]


Input: What is Joseph R. Perella's occupation?

Answer: ["financier"]


Input: Which country does the airline VIASA come from?

Answer: ISO 3166-1:VE

Answer: Venezula

Answer: Venezuela, RB

Answer: Republica de Venezuela

Answer: Venuzeula

Answer: The Bolivarian Republic Of Venezuela

Answer: Venizuela

Answer: Bolivarian Republic of Venezuela

Answer: Venezuelan

Answer: Venezuela

Answer: Republica Bolivariana de Venezuela

Answer: Venazeula

Answer: Bolivaria

Answer: Republic of Venezuela

Answer: Venezuala

Answer: Venecuela

Answer: Venzuela

Answer: VENEZULEA

Answer: República Bolivariana de Venezuela

Answer: Etymology of Venezuela

Answer: Benezuela

Answer: Venzauela

Answer: VEN

Answer: Venezeula

Answer: Republica de venezuela

Answer: Venezuela (Bolivarian Republic of)

Answer: BRV

Answer: Venezuela, Bolivarian Republic of

Answer: Name of Venezuela

Answer: V'zuela


Input: Where was the director of film Club Sandwich (Film) born?

Answer: Mexico City


Input: What is Dash's occupation?

Answer: ["record producer", "music producer"]


Input: who wrote i could fall in love by selena

Answer: Keith Thomas


Input: Where did the director of film Fireman Save My Child (1954 Film) die?

Answer: Hollywood


Input: Which verse in Luke states that Mary had "no relations with man" before the birth of the speaker from Sermon on the Mount?

Answer: 1:34


Input: who is next in line for the royal throne of england

Answer: Charles, Prince of Wales


Input: Who is the General Treasurer of Providence Plantations and the state where Prolyphic was born?

Answer: Seth Magaziner


Input: Which ER star played opposite Jenny Seagrove in Don' Go Breaking My Heart?

Answer: Anthony Charles Edwards

Answer: Anthony Edwards


Input: Which brothers were Warner Bros' first major record success?

Answer: Everly (disambiguation)

Answer: Everly


Input: In what city was Keri Lees born?

Answer: ["Stone", "Stone, Staffordshire"]


Input: Write a python function to count number of cubes of size k in a cube of size n.

Answer:
def No_of_cubes(N,K):
    No = 0
    No = (N - K + 1)
    No = pow(No, 3)
    return No

assert No_of_cubes(2,1) == 8
assert No_of_cubes(5,2) == 64
assert No_of_cubes(1,1) == 1


Input: What is the date of birth of the director of film Along The Rio Grande?

Answer: January 26, 1903


Input: American politician Joe Heck ran unsuccessfully against Democrat Catherine Cortez Masto, a woman who previously served as the 32nd Attorney General of where?

Answer: Nevada


Input: Which country the performer of song Dream Dancing (Cole Porter Song) is from?

Answer: American


Input: When was the last time Auburn won in the city where J. Robert Wooley lives?

Answer: 1999


Input: Write a function to sort dictionary items by tuple product of keys for the given dictionary with tuple keys.

Answer:
def sort_dict_item(test_dict):
  res = {key: test_dict[key] for key in sorted(test_dict.keys(), key = lambda ele: ele[1] * ele[0])}
  return  (res)


Input: What dialect of German is spoken in the country where Otto Furrer was born?

Answer: Swiss German


Input: When is the composer of film Artham 's birthday?

Answer: 26 March 1953


Input: Where did Herbert Furth's mother die?

Answer: Washington


Input: Fast Cars, Danger, Fire and Knives includes guest appearances from which hip hop record executive?

Answer: Jaime Meline


Input: when did fortnite come out on xbox one

Answer: 2017


Input: Write a python function to find the largest triangle that can be inscribed in the semicircle.

Answer:
def triangle_area(r) :
    if r < 0 :
        return -1
    return r * r

assert triangle_area(0) == 0
assert triangle_area(-1) == -1
assert triangle_area(2) == 4


Input: The Joan Lui director's birthplace is an important transportation node in which country?

Answer: Italy


Input: The Shady Grove in the same state as Waukee High School is present in what county?

Answer: Buchanan County


Input: Which American guitarist and bluegrass musician from Danville, Virginia did Rebecca Rippy play or share the stage with?

Answer: Tony Rice


Input: The Grinch is a fictional character created by an author that died in what year?

Answer: 1991


Input: When did the person who recognized Jewish synagogues as being legitimate in Rome die?

Answer: March 44 BC


Input: this dictator and commander of chile's army ruled the country from 1973 to 1990

Answer: General Augusto Pinochet


Input: Shanghai Noon was the directorial debut of an American film director whose other credits include Showtime, Failure to Launch, and what other film?

Answer: Marmaduke


Input: What bird is named for the apostle Peter?

Answer: The petrel, from a diminutive form of Petrus, or Peter, in Latin


Input: In Laverne & Shirley, what was Laverne's last name?

Answer: De Fazio


Input: What number Star Trek movie was called The Wrath of Khan?

Answer: II

Answer: 2

Answer: two


Input: Which film whose director is younger, Charge It To Me or Danger: Diabolik?

Answer: Danger: Diabolik


Input: when did uk voting age reduced to 18

Answer: 1970


Input: most td passes in a college football season

Answer: 58


Input: What is Veronica Franco's occupation?

Answer: ["poet", "poetess", "bard"]


Input: When was the director of King of the Dancehall born?

Answer: October 8, 1980


Input: Where did the director of film Return Of A Citizen die?

Answer: Cairo


Input: Who gifted the Statue of Liberty to the state which contains the location where the novel The Great Gatsby was set?

Answer: the people of France


Input: In which country is the Howrah bridge?

Answer: ഭാരത മഹാരാജ്യം

Answer: هندستانڀارت،

Answer: भारतीय गणराज्याच्या

Answer: Bhārtiya Prajāsattāk

Answer: Indian Republic

Answer: ভারতরাষ্টৃ

Answer: Indian republic

Answer: ಭಾರತ ಗಣರಾಜ್ಯ

Answer: Union of India

Answer: இந்தியக் குடியரசு

Answer: भारतीय प्रजासत्ताक

Answer: India (country)

Answer: ISO 3166-1:IN

Answer: Indea

Answer: Etymology of India

Answer: ভারত গণরাজ্য

Answer: Republic Of India

Answer: INDIA

Answer: ભારતીય ગણતંત્ર

Answer: ভারত

Answer: Republic of India

Answer: Les Indes

Answer: Bhārat Gaṇarājya

Answer: جمہوٗرِیت بًارت

Answer: भारतमहाराज्यम्

Answer: Indya

Answer: Bharat Ganrajya

Answer: جمہوریہ بھارت

Answer: இந்திய

Answer: ଭାରତ ଗଣରାଜ୍ଯ

Answer: भारत गणराज्य

Answer: Republic of india

Answer: जुम्हूरियत भारत

Answer: Hindio

Answer: The Republic of India

Answer: భారత గణతంత్ర రాజ్యము

Answer: India's

Answer: Hindistan

Answer: ਭਾਰਤ ਗਣਤੰਤਰ

Answer: Bhart

Answer: India

Answer: భారత రిపబ్లిక్

Answer: India.

Answer: ভাৰত গণৰাজ্য

Answer: Indian State

Answer: ISO 3166-1 alpha-3/IND

Answer: ভারতীয় প্রজাতন্ত্র


Input: What is the date of birth of Derek Mckeith's mother?

Answer: November 13, 1948


Input: where is the big brother house located in south africa

Answer: Highlands North, Johannesburg


Input: a statement that tests a value is called a ____ statement

Answer: conditional


Input: what is the top of a pyramid called

Answer: pyramidion


Input: What type of vegetation does Kniphofia and Baptisia have in common?

Answer: plant


Input: What is the highest point in the country where Bugabula is found?

Answer: 1,400 metres


Input: how much did it cost to build the dallas cowboys stadium

Answer: $1.15 billion


Input: Who directed the movie Trading Places?

Answer: John Landis

Answer: John D. Landis

Answer: When in Hollywood, Visit Universal Studios. Ask for Babs


Input: Are both director of film Scandal At The Fledermaus and director of film House Of Angels – Third Time Lucky from the same country?

Answer: no


Input: Which movie was co-written by the person who directed "Blood"?

Answer: The Awakening


Input: who is responsible for maneuvering the fire team

Answer: Team Leader (TL)


Input: the author of the girl on the train

Answer: Paula Hawkins


Input: what are four functions of the cell or plasma membrane

Answer: controls the movement of substances


Input: In which month of the year did Bing Crosby record White Christmas?

Answer: May sickness

Answer: May

Answer: Veliki traven

Answer: May (month)

Answer: Month May


Input: Who quit the college that educated the owner of the Gold Spike, located where Albert Edmunds Calhan died, and became the person referred to as the founder of public relations?

Answer: Basil Clarke


Input: What is Matthew Underwood's occupation?

Answer: ["actor", "actress", "actors", "actresses"]


Input: In what city was Dakota Collins born?

Answer: ["Santa Barbara", "Santa Barbara, California"]


Input: When was gay marriage legalized in the city where Spectre filming took place after the city where he died?

Answer: December 2009


Input: Write a function to push all values into a heap and then pop off the smallest values one at a time.

Answer:
import heapq as hq
def heap_sort(iterable):
    h = []
    for value in iterable:
        hq.heappush(h, value)
    return [hq.heappop(h) for i in range(len(h))]


Input: who won the first olympic gold medal in snowboarding

Answer: Canadian Ross Rebagliati


Input: In what city was Andries Bonger born?

Answer: ["Amsterdam", "Mokum", "Amsterdam, NL", "Amsterdam, Netherlands", "A'dam"]


Input: Write a function to filter the height and width of students which are stored in a dictionary.

Answer:
def filter_data(students,h,w):
    result = {k: s for k, s in students.items() if s[0] >=h and s[1] >=w}
    return result


Input: Are both director of film The Search For John Gissing and director of film Blindfolded (Film) from the same country?

Answer: yes


Input: How many different hats does Madonna wear in Evita?

Answer: 39

Answer: thirty-nine


Input: who wrote the song i'll be there

Answer: Berry Gordy

Answer: Bob West

Answer: Hal Davis

Answer: Willie Hutch


Input: In what city was Steve Kerr born?

Answer: ["Beirut"]


Input: What is Conrad Weiser's occupation?

Answer: ["diplomat"]


Input: When did the sport that Courtney Yamada-Anderson played become an Olympic sport?

Answer: 1928


Input: In what city was Runa Akiyama born?

Answer: ["Tokyo", "Tōkyō", "Tôkyô", "Tokyo-to", "Tokyo Metropolitan prefecture", "Tōkyō-to", "Tôkyô-to", "Tokyo Metropolis", "Tokio", "Tokyo Prefecture"]


Input: when did the battle of san jacinto happen

Answer: April 21, 1836


Input: What is Bedřich Smetana's occupation?

Answer: ["composer", "pianist"]


Input: In what city was Gerd Arntz born?

Answer: ["Remscheid", "Kreisfreie Stadt Remscheid"]


Input: How many inches of precipitation are received annually by the city where Daniel William Coquillett died?

Answer: 40 inches


Input: The basis of the jurisdiction to which applies the European Economic and Social Committee began with the signing of what?

Answer: the Treaty on the Functioning of the European Union


Input: Terenzo is a city in the Province of Parma, which region of Italy is Terenzo located in?

Answer: northern Italian region


Input: What is Graham Collier's occupation?

Answer: ["composer", "bandleader", "Wind band conductor", "Harmony orchestra leader"]


Input: What caucus is the current Representative from Texas's 6th congressional district a member of?

Answer: Tea Party Caucus


Input: What nationality is the director of film What Does Brigitte Want??

Answer: Hungarian


Input: when did the brave season 1 episode 10 air

Answer: January 8, 2018


Input: What was the country where Ramon Sandin has citizenship before it was a commonwealth?

Answer: a key part of the Spanish Empire


Input: Were both Ignacio González González and Adolphe-Marie Hardy, born in the same place?

Answer: no


Input: Write a function to find the minimum number of elements that should be removed such that amax-amin<=k.

Answer:
def find_ind(key, i, n,
			k, arr):
	ind = -1
	start = i + 1
	end = n - 1;
	while (start < end):
		mid = int(start +
				(end - start) / 2)
		if (arr[mid] - key <= k):
			ind = mid
			start = mid + 1
		else:
			end = mid
	return ind
def removals(arr, n, k):
	ans = n - 1
	arr.sort()
	for i in range(0, n):
		j = find_ind(arr[i], i,
					n, k, arr)
		if (j != -1):
			ans = min(ans, n -
						(j - i + 1))
	return ans


Input: when does damon first develop feelings for elena

Answer: season two


Input: In what season what the performer of Truly a guest judge on American Idol?

Answer: season two


Input: In which municipality in the province where Dalhousie Mountain is located can Dean be found?

Answer: Halifax Regional Municipality


Input: What is Elvin Penner's occupation?

Answer: ["politician", "political leader", "political figure", "polit.", "pol"]


Input: What retired American soccer player is the head coach  of the team owned by Anthony Precourt and Precourt Sports Ventures LLC?

Answer: Gregg Berhalter


Input: What is Walter de la Pole's occupation?

Answer: ["politician", "political leader", "political figure", "polit.", "pol"]


Input: What exotic city was featured in National Geographic magazine's first photo story in 1905?

Answer: Lhasa

Answer: Lhasa, Tibet

Answer: 拉萨

Answer: Administrative divisions of Lhasa

Answer: Lahasa

Answer: Lhosa

Answer: 拉萨市

Answer: 拉薩

Answer: Capital of Tibet

Answer: Lasa, Xizang

Answer: Lhasa, Xizang

Answer: 拉薩市

Answer: Chengguan District, Lhasa

Answer: Lhassa

Answer: Dharkay Restaurant

Answer: Lāsà


Input: In which state was Quincy Jones born?

Answer: Transportation in Illinois

Answer: Illionis

Answer: Demographics of Illinois

Answer: Illinois

Answer: 21st State

Answer: The Prairie State

Answer: Illinoid

Answer: Prairie State

Answer: State of Illinois

Answer: Rockford Academy

Answer: Religion in Illinois

Answer: Ill.

Answer: Illinois Ironmen

Answer: Twenty-first State

Answer: Illinios

Answer: Education in Illinois

Answer: IL (state)

Answer: Energy in Illinois

Answer: Illinois (state)

Answer: Twenty-First State

Answer: Land of Lincoln

Answer: Illinois, United States

Answer: Transport in Illinois

Answer: US-IL

Answer: Illinois (U.S. state)

Answer: Sports in Illinois

Answer: The Land of Lincoln

Answer: Illinoy

Answer: Illinoisan


Input: In which country was Sam Neill born?

Answer: The Norn Iron

Answer: Irland du nord

Answer: Irlanda del Norte

Answer: Norrn Iron

Answer: Geography of Northern Ireland

Answer: North Ireland

Answer: Northern ireland

Answer: Governance of Northern Ireland

Answer: Ireland (Northern Ireland)

Answer: The North of Ireland

Answer: N. Ireland

Answer: Northern Ireland, UK

Answer: The Northern Ireland

Answer: 6 counties

Answer: N Ireland

Answer: Ulster (UK)

Answer: Six counties

Answer: Northeast of Ireland

Answer: North ireland

Answer: Northern Ireland assembly and Executive

Answer: Nothern Irish

Answer: Tuaisceart Eireann

Answer: North of ireland

Answer: Nothern Ireland

Answer: Na Sé Contaethe

Answer: Norlin Airlan

Answer: Northern irish

Answer: Northern Irish politics

Answer: Northern Ireland, United Kingdom

Answer: Norn iron

Answer: Norlin Airlann

Answer: Northern Ireland (UK)

Answer: Norn Iron

Answer: Na Se Contaethe

Answer: Northern Ireland Assembly and Executive

Answer: Norn Irn

Answer: Northern Ireland's national anthem

Answer: National anthem of Northern Ireland

Answer: Ulster (occupied)

Answer: Communications in Northern Ireland

Answer: Norn Ireland

Answer: Ireland (north)

Answer: The Occupied 6 Counties

Answer: Northern Ireland

Answer: Tuaisceart Éireann

Answer: North of Ireland


Input: who is crowned king of scotland at the end of macbeth

Answer: Malcolm


Input: What is Rumi's occupation?

Answer: ["philosopher", "poet", "poetess", "bard"]


Input: Are St. Mary High School (Rutherford, New Jersey) and Mother Teresa High School both located in the same country?

Answer: no


Input: who sang the way you look tonight first

Answer: Fred Astaire


Input: How many times did the New York Yankees win the World Series in the 1970s?

Answer: Twice

Answer: Twice (disambiguation)


Input: who did kelly end up with on 90210

Answer: Dylan


Input: Which country the director of film Left Behind Ii: Tribulation Force is from?

Answer: Canadian


Input: where is the new years eve concert held

Answer: Westminster Central Hall


Input: Write a function to reverse words in a given string.

Answer:
def reverse_words(s):
        return ' '.join(reversed(s.split()))

assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")


Input: What is the place of birth of the composer of film Krishna (1996 Tamil Film)?

Answer: Chennai


Input: Who is older, Frank Dillane or Charles De Wendel?

Answer: Charles De Wendel


Input: What film title does J. F. Lawton and Shawn Levy have in common?

Answer: producer


Input: Which event was a surprise military strike by the Imperial Japanese Navy Air Service while Magruder Hill Tuttle was a senior officer in the United States Navy?

Answer: attack on Pearl Harbor


Input: If driving on K-38 today, how many congressional districts are in your current state?

Answer: 4


Input: Which band-mate of Joe Perry's co-wrote "Monkey On My Back" and is known as the "Demon of Screamin"?

Answer: Steven Tyler


Input: When did the basketball player who inspired David Beckham to wear 23 introduce the Air Jordan?

Answer: 1985


Input: how does the oral cavity help the digestive system

Answer: produces a lubricating mucus


Input: In what city was Nikolai Kinski born?

Answer: ["Paris", "City of Light", "Paris, France"]


Input: What number album of Taylor Swift did Colbie Marie Caillat win a Grammy for?

Answer: second


Input: What was the name of the sax player in New York New York who fell for Francine?

Answer: Jimmy (film)

Answer: Jimmy

Answer: Jimmy (disambiguation)


Input: who won the second battle of the marne

Answer: The Allies


Input: Brisingr is the third novel in the "Inheritance Cycle", is a young adult tetralogy of high fantasy novels written by which American author?

Answer: Christopher Paolini


Input: Write a python function to find the sum of fifth power of n natural numbers.

Answer:
def fifth_Power_Sum(n) :
    sm = 0
    for i in range(1,n+1) :
        sm = sm + (i*i*i*i*i)
    return sm

assert fifth_Power_Sum(2) == 33
assert fifth_Power_Sum(4) == 1300
assert fifth_Power_Sum(3) == 276


Input: What is Giora Godik's occupation?

Answer: ["impresario", "Talent Manager"]


Input: Which villain was played by Burgess Meredith in the 1960s Batman TV series?

Answer: Penguin (comics)

Answer: The Penguin (comics)

Answer: Oswald Chesterfield Cobblepot

Answer: Actors to portray the Penguin

Answer: Cobblepot

Answer: Oswald Cobblepot

Answer: The penguin

Answer: The Penguin

Answer: Penguin (Oswald Chesterfield Cobblepot)

Answer: Penguin (character)


Input: who is the voice of the t rex in the good dinosaur

Answer: Sam Elliott


Input: who sang life is a three ring circus

Answer: Barry Biggs

Answer: Yorkville Grind

Answer: Blue Magic

Answer: Beady Eye


Input: In what city was János Ferencsik born?

Answer: ["Budapest", "Buda Pest", "Buda-Pest", "Budapešť", "Budapesta", "Budapeszt", "Buda", "Ofen", "Budín", "Budim", "Budon", "Pest", "Pešť", "Pešta", "Óbuda", "Alt-Ofen", "Kőbánya"]


Input: What is Richard Myers's occupation?

Answer: ["songwriter", "song writer"]


Input: When did the country Privilege's performer is a citizen of abolish the authority of the pope?

Answer: August 1560


Input: Whom is the country with the Vieux Fort River named after?

Answer: Saint Lucy


Input: Who was the defending champion when Andre Agassi first won Wimbledon singles?

Answer: Michael Stich


Input: What is the percentage of non-family households in the city where WNJN-FM is located?

Answer: 44.8%


Input: Are both villages, Mazraeh-Ye Ruansar and Qalandar-E Sofla, located in the same country?

Answer: yes


Input: In what city was John O'Brien born?

Answer: ["Toomyvara", "Toomevara"]


Input: In what city was Thomas Seaton Scott born?

Answer: ["Birkenhead"]


Input: Are the movies Carnival Of Souls and Uvanga, from the same country?

Answer: no


Input: who starred in the movie same time next year

Answer: Ellen Burstyn

Answer: Alan Alda


Input: Why did the director of film The Machine Age die?

Answer: Parkinson's disease


Input: An American theoretical physicist who worked in particle physics and cosmology, she was also known as the Frank B. Baird, Jr., was a former guest on a podcast that was described as "a think tank promoting science, reason, and secular values in public policy and at the grass roots"; when was that podcast started?

Answer: 2005


Input: "In the Bible, for what ""price"" did Esau sell his birthright to his younger twin brother, Jacob?"

Answer: Pottage of lentils (Genesis 25:29-34)


Input: when did heaven by kane brown come out

Answer: December 2, 2016


Input: Who was born first George Marshall or Allan Dwan ?

Answer: Allan Dwan


Input: What is Seungri's occupation?

Answer: ["actor", "actress", "actors", "actresses"]


Input: Who was born first, Mckeeva Bush or Owen Evans (Rugby Player)?

Answer: Mckeeva Bush


Input: What song recorded by Fergie was produced by Polow da Don and was followed by Life Goes On?

Answer: M.I.L.F. $


Input: what happened to the third guy in nirvana

Answer: death


Input: Which county border the county where Rapid City, South Dakota is located?

Answer: Meade County


Input: In what city was Donnchad mac Briain born?

Answer: ["Ireland", "Éire", "IE", "IRL", "Republic of Ireland", "Hibernia", "Ireland, Republic of", "ie", "ireland", "🇮🇪", "Eire", "Southern Ireland"]


Input: which type of climate is characteristic of antarctica

Answer: the ice cap polar climate


Input: Cohousing is a community designed around a shared space, an example being Sættedammen in which country?

Answer: Denmark


Input: Write a python function to find the type of triangle from the given sides.

Answer:
def check_Type_Of_Triangle(a,b,c):
    sqa = pow(a,2)
    sqb = pow(b,2)
    sqc = pow(c,2)
    if (sqa == sqa + sqb or sqb == sqa + sqc or sqc == sqa + sqb):
        return ("Right-angled Triangle")
    elif (sqa > sqc + sqb or sqb > sqa + sqc or sqc > sqa + sqb):
        return ("Obtuse-angled Triangle")
    else:
        return ("Acute-angled Triangle")

assert check_Type_Of_Triangle(1,2,3) == "Obtuse-angled Triangle"
assert check_Type_Of_Triangle(2,2,2) == "Acute-angled Triangle"
assert check_Type_Of_Triangle(1,0,1) == "Right-angled Triangle"


Input: What is Edwin H. Knopf's occupation?

Answer: ["film director", "movie director", "director", "motion picture director", "screenwriter", "scenarist", "writer", "screen writer", "script writer", "scriptwriter", "film producer", "movie producer", "producer"]


Input: How many Jews live in the country other than Britain that claims the country River Island is located in?

Answer: 180,000-300,000


Input: What is Hate Man's occupation?

Answer: ["philosopher"]


Input: What is Del Quentin Wilber's occupation?

Answer: ["journalist", "journo", "journalists"]


Input: Are both high schools, Fort Zumwalt South High School and West Chester East High School, located in the same country?

Answer: yes


Input: Who won an award first, the Brothers Quay or Alexandra Shiva?

Answer: Brothers Quay


Input: Where did Mirza Farkhunda Shah's father die?

Answer: Rangoon


Input: How many iPods did its manufacturers reveal was sold in April 2007?

Answer: hundred million


Input: Which species, Cardwellia or Ochagavia, is native to South America?

Answer: Ochagavia


Input: Are Max Tortora and William Soules from the same country?

Answer: no


Input: What was the main color of a Storm trooper in Star Wars?

Answer: White (Colour)

Answer: Rgb(255, 255, 255)

Answer: White

Answer: Whitishness

Answer: Whiter

Answer: (255, 255, 255)

Answer: Whitishly

Answer: White (political adjective)

Answer: White-

Answer: White-Finn

Answer: Whitest

Answer: FFFFFF

Answer: Color/white

Answer: Man on a white horse


Input: What month did the performer of "Heartbeat Song" win?

Answer: September


Input: In what city was Moon Joo-won born?

Answer: ["South Korea", "Republic of Korea", "ROK", "kr", "Rep. Korea", "S. Korea", "Korea Republic", "🇰🇷", "KOR"]


Input: Where are the badlands located in the state that has a buffalo on its license plate?

Answer: western North Dakota


Input: Where did Ferdinand Marcos live in exile?

Answer: Haiwii

Answer: The State of Hawaii

Answer: Mokuʻāina o Hawaiʻi

Answer: Mokuʻa-ina o Hawaiʻi

Answer: Demographics of Hawaii

Answer: Hawaiian culture

Answer: Hawai'i Resident

Answer: Economy of Hawaii

Answer: Hawaii, United States

Answer: Haiwaii

Answer: US-HI

Answer: Owhyhee

Answer: Transport in Hawaii

Answer: Hawii

Answer: Hawaii, USA

Answer: 50th State

Answer: Hawai’i

Answer: Hawai'i

Answer: Haway

Answer: Hawai%60i

Answer: Hawaii (U.S. state)

Answer: State of Hawaiʻi

Answer: Hawái

Answer: Languages of Hawaii

Answer: Hawaï

Answer: Demographics of Hawaiʻi

Answer: State of Hawai%60i

Answer: Hawwaii

Answer: Hawai‘i

Answer: Moku%60aina o Hawai%60i

Answer: U.S. (HI)

Answer: Hawaií

Answer: The Aloha State

Answer: Hawaii

Answer: Culture of Hawaii

Answer: Geography of Hawaii

Answer: Hawai'i State

Answer: State of Hawaii

Answer: Health in Hawaii

Answer: Religion in Hawaii

Answer: ハワイ

Answer: Hawaiʻi

Answer: Hawaii Resident

Answer: Moku%60a-ina o Hawai%60i

Answer: Howaii

Answer: Fiftieth State

Answer: Hawaii (state)

Answer: Aloha State

Answer: Education in Hawaii

Answer: State of Hawai'i


Input: Write a function to calculate the standard deviation.

Answer:
import math
import sys
def sd_calc(data):
    n = len(data)
    if n <= 1:
        return 0.0
    mean, sd = avg_calc(data), 0.0
    for el in data:
        sd += (float(el) - mean)**2
    sd = math.sqrt(sd / float(n-1))
    return sd
def avg_calc(ls):
    n, mean = len(ls), 0.0
    if n <= 1:
        return ls[0]
    for el in ls:
        mean = mean + float(el)
    mean = mean / float(n)
    return mean


Input: The team Kevin Goldthwaite last played for play their home games at Providence Park since what year?

Answer: 2011


Input: who has the least punishments on impractical jokers

Answer: Joe


Input: what is the running time of the last jedi

Answer: 152 minutes


Input: In what year was the author of "Trading Christmas" born?

Answer: 1948


Input: Borovička (also known as Juniper brandy), is a Slovak alcoholic beverage flavored with juniper berries, today's commercially produced borovička contains about 40% alcohol by volume, what is it called, also called alcohol, ethyl alcohol, and drinking alcohol, is a compound and simple alcohol with the chemical formula C2H5OH?

Answer: Ethanol


Input: Which film has the director born first, The House (2011 film) or Pengkhianatan G30S/PKI?

Answer: Pengkhianatan G30S/Pki


Input: who controlled vietnam during the late 1800s to 1954

Answer: The Nguyễn dynasty


Input: Who directed Revolver, the 2005 crime thriller starring the English actor Jason Statham?

Answer: Guy Ritchie


Input: What is the date of death of Hercules Taylour's father?

Answer: 14 February 1795


Input: Did Lance Norick and Robert Whittaker have the same nationality?

Answer: yes


Input: How old do you have to be to drink with a parent in the US state setting Driftless?

Answer: 18 - 20


Input: Who was born first out of Walter Lambertus and Ingeborg Meyer-Rey?

Answer: Ingeborg Meyer-Rey


Input: What is the capital of the state Curly Ray Cline is from?

Answer: Charleston


Input: The Jargon Society has published books by the founder and primary theorist of what group of poets?

Answer: Objectivist


Input: who is going on tour with taylor swift 2018

Answer: Charli XCX

Answer: Camila Cabello


Input: Son of Paleface starred the comedian and vaudevilian of what nationality?

Answer: American


Input: In what year did regular Boeing 707 flights begin across he Atlantic?

Answer: 1958

Answer: one thousand, nine hundred and fifty-eight


Input: Where is the there a small medevial castle

Answer: Scotland


Input: Roger Avary (born August 23, 1965) is a Canadian film and television producer, screenwriter and director in the American mass media industry, he wrote the screenplay for Beowulf, a 2007 British-American 3D motion capture epic fantasy film, directed by who?

Answer: Robert Zemeckis


Input: Were Dan O'Connor (Prospector) and Hale Baugh from the same country?

Answer: no


Input: when was your song by elton john released

Answer: 26 October 1970


Input: Write a function to find nth polite number.

Answer:
import math
def is_polite(n):
	n = n + 1
	return (int)(n+(math.log((n + math.log(n, 2)), 2)))

assert is_polite(7) == 11
assert is_polite(4) == 7
assert is_polite(9) == 13


Input: what are the bikes called where you lay down

Answer: A recumbent bicycle


Input: Did Lisen Hockings and Jean-Louis Mandel share the same nationality?

Answer: no


Input: Which film came out first, Fifty Fathoms Deep or Cool Breeze (Film)?

Answer: Fifty Fathoms Deep


Input: Who did Jane Fonda play in the 60s movie of the same name where she repeatedly lost her clothes.

Answer: Barbarella (disambiguation)

Answer: Barbarella


Input: can't you see marshall tucker band album

Answer: The Marshall Tucker Band


Input: When were the mosaics at the church in Sitki Uke's birthplace created?

Answer: 5th–6th centuries


Input: who invented the television and when was it invented

Answer: 1927

Answer: Philo Taylor Farnsworth


Input: who explored the west coast of north america

Answer: Spanish


Input: What is the date of death of the composer of song Boy! What Love Has Done To Me!?

Answer: July 11, 1937


Input: who sings the song save a horse ride a cowboy

Answer: Big & Rich


Input: where is james scott from days of our lives

Answer: other endeavours


Input: In what city was Robert Crannell Minor born?

Answer: ["New York City", "NYC", "New York", "the five boroughs", "Big Apple", "City of New York", "NY City", "New York, New York", "New York City, New York", "New York, NY", "New York City (NYC)"]


Input: What is Patrick O'Brien Demsey's occupation?

Answer: ["actor", "actress", "actors", "actresses"]


Input: Are Sparta and King Charles both from the same country?

Answer: no


Input: Which country was the first in the world to introduce a driving test?

Answer: La Republique francaise

Answer: Franciaország

Answer: La Republique française

Answer: Belle France

Answer: FRANCE

Answer: Republique française

Answer: France

Answer: Ranska

Answer: Franciaorszag

Answer: French Republic

Answer: République francaise

Answer: République française

Answer: ISO 3166-1:FR

Answer: Frankreich

Answer: France (country)

Answer: Etymology of France

Answer: FrancE

Answer: La République française

Answer: People of France

Answer: Republic of France

Answer: Fracne

Answer: Le France

Answer: The French Republic

Answer: Republique francaise

Answer: The Republic of France

Answer: La République francaise

Answer: La France

Answer: Rain in France

Answer: Republic of france

Answer: FRance

Answer: Frakkland

Answer: Climate of France

Answer: Franse


Input: who is often considered america's most prolific composer

Answer: Stephen Collins Foster


Input: what is the second biggest state in united states

Answer: Texas


Input: Do both films Where The Wild Things Are (Film) and A Modern Hero have the directors from the same country?

Answer: no


Input: who used the sherman antitrust act to dissolve the monopoly of the northern securities company

Answer: President Theodore Roosevelt


Input: what is the largest tree in the united states

Answer: a giant sequoia

Answer: General Sherman


Input: Why did the director of film The Little Hut die?

Answer: heart attack


Input: What nationality is the director of film Age Of Consent (Film)?

Answer: British


Input: In what city was Karl-Hans Riehm born?

Answer: ["Konz"]


Input: How is Scott Speedman and Michael Corvin related?

Answer: Underworld


Input: Titus is the soundtrack to the film that starred which actors?

Answer: Anthony Hopkins and Jessica Lange


Input: In what city was Giulio Bisegni born?

Answer: ["Frascati"]


Input: What is Rich Brightman's occupation?

Answer: ["singer-songwriter", "singer songwriter", "singer/songwriter", "singersongwriter", "singer-songwriter"]


Input: What was the first state to join the Union in the 20th century?

Answer: Okla.

Answer: Oklahoma

Answer: Oklahoma, United States

Answer: Sooner State

Answer: Forty-Sixth State

Answer: Religion in Oklahoma

Answer: Culture of Oklahoma

Answer: 46th State

Answer: Oklahoma (U.S. state)

Answer: Oklahoma, USA

Answer: State of Oklahoma

Answer: List of Oklahoma State Symbols

Answer: Oaklahoma

Answer: Oklaholma

Answer: Transportation in Oklahoma

Answer: US-OK

Answer: Sports in Oklahoma

Answer: Okla

Answer: Oklahoman

Answer: Oclahoma

Answer: Education in Oklahoma

Answer: Energy in Oklahoma

Answer: Transport in Oklahoma

Answer: Forty-sixth State

Answer: Oklahoma (state)

Answer: The Sooner State


Input: In what city was Klaus-Degenhard Schmidt born?

Answer: ["Kiel"]


Input: When did the director of film Sylvia (1965 Film) die?

Answer: September 29, 1993


Input: What nationality is the performer of song Hummingbird (1955 Song)?

Answer: America


Input: Who was the oppressive Communist leader who was deposed in 1989, in the country that contains the commune of Ighiu?

Answer: Nicolae Ceaușescu


Input: Where did the Baldevins bryllup director die?

Answer: Copenhagen


Input: Which country the director of film Back Street (1941 Film) is from?

Answer: British


Input: How did Kanye draw inspiration from U2, Led Zeppelin, and the band that performed Sweet Black Angel?

Answer: melody and chord progression


Input: Do both films: Arbitrage (film) and In the Wake of a Stranger have the directors from the same country?

Answer: no


Input: This Federation of Indian Airlines member is owned by what Indian business conglomerate?

Answer: Wadia Group


Input: highest goal scored in a champions league season

Answer: 17


Input: In which year was the talkie The Jazz Singer released?

Answer: one thousand, nine hundred and twenty-seven

Answer: 1927


Input: Write a function to find the minimum total path sum in the given triangle.

Answer:
def min_sum_path(A):
	memo = [None] * len(A)
	n = len(A) - 1
	for i in range(len(A[n])):
		memo[i] = A[n][i]
	for i in range(len(A) - 2, -1,-1):
		for j in range( len(A[i])):
			memo[j] = A[i][j] + min(memo[j],
									memo[j + 1])
	return memo[0]


Input: Richard Nixon was Vice President to which US state?

Answer: Eisenhower Dwight

Answer: Health issues of Dwight D. Eisenhower

Answer: D. D. Eisenhower

Answer: Dynamic Conservatism

Answer: General Dwight Eisenhower

Answer: David Jacob Eisenhower

Answer: Dweight Eisenhower

Answer: 34th President of the United States

Answer: Dwight E Eisenhower

Answer: Eisehower

Answer: President Dwight D. Eisenhower

Answer: David Dwight Eisenhower

Answer: Ike (nickname)

Answer: Eisenhower

Answer: Eishenhower

Answer: General Dwight David Eisenhower

Answer: Dwight D. Eisenhower

Answer: President Eisenhower

Answer: Ike Eisenhower

Answer: Dwight Eisenhower

Answer: D. Eisenhower

Answer: General Eisenhower

Answer: David D. Eisenhower

Answer: President Dwight Eisenhower

Answer: Dwight eisenhower

Answer: Dwight Eisenhour

Answer: Dwight Eisienhower

Answer: Dwight Eisenhauer

Answer: Dwight David Eisenhower

Answer: Dwight D Eisenhower

Answer: General of the Army Dwight Eisenhower


Input: In what city was Beniamino Di Giacomo born?

Answer: ["Porto Recanati"]


Input: how many planet of the ape films are there

Answer: 9


Input: What network did the show on which Kim Roberts played Neeva air on?

Answer: FX


Input: what adds a phosphate group to adp to form atp

Answer: oxidative phosphorylation


Input: What Brazilian professional footballer endorsed the Mercurial Vapor boot?

Answer: Philippe Coutinho Correia


Input: Write a function to sum elements in two lists.

Answer:
def sum_list(lst1,lst2):
  res_list = [lst1[i] + lst2[i] for i in range(len(lst1))]
  return res_list


Input: Which Russian-born American wrote I, Robot?

Answer: Isaac Asimov complete bibliography

Answer: Issac asimov

Answer: Dr A

Answer: Complete bibliography of books by Isaac Asimov

Answer: World Season Calendar

Answer: IsaacAsimov

Answer: Dr. A

Answer: Eyzek Asimov

Answer: Isaac Asimov bibliography

Answer: Issac assimov

Answer: Asimov's work

Answer: Isaac azimov

Answer: List of books by Isaac Asimov

Answer: Asimov’s work

Answer: Isaac asimov

Answer: Isaak Yudovich Ozimov

Answer: Asimov, Isaac

Answer: Asimovian

Answer: George E. Dale

Answer: Bibliography of Isaac Asimov

Answer: Eyzik Asimov

Answer: Asimov

Answer: Isaac Asimov

Answer: Izaak Ozimov

Answer: World Seasonal Calendar

Answer: Manya Asimov

Answer: Bibliography of isaac asimov

Answer: Issac Asimov

Answer: Marcia Asimov

Answer: Dr. Isaac Asimov

Answer: Isaak Ozimov

Answer: Isaac Asimov Complete Bibliography

Answer: Isacc Asimov

Answer: Isac Asimof

Answer: Aisek Asimov

Answer: Isaac Asimov works

Answer: Isaac Azimov

Answer: List of Isaac Asimov works


Input: Which 20th Century Fox film cast Zazie Beetz as Domino?

Answer: Deadpool 2


Input: when did us gain control of the philippines

Answer: December 10, 1898


Input: What's the county seat of Lone Hickory, a town in the same state as fictional Mayberry?

Answer: Yadkinville


Input: when does rupauls drag race season 10 start

Answer: sometime in spring 2018


Input: who plays caputo on orange is the new black

Answer: Nick Sandow


Input: Where did the person with the most no-hitters in MLB history go to high school?

Answer: Alvin High School


Input: when did france give us the statue of liberty

Answer: June 17, 1885


Input: Billy Crystal had a full college scholarship in which sport?

Answer: Baseball game

Answer: Baseball players

Answer: Baseball player

Answer: Basebasll

Answer: American baseball

Answer: Béisbol

Answer: Baseball team

Answer: Baseball Player

Answer: Base Ball

Answer: Beisbol

Answer: Baseball

Answer: America's pasttime

Answer: America's past time

Answer: The transformation of baseball

Answer: Baseball Sign

Answer: Basebol

Answer: Base-Ball

Answer: Baseballer

Answer: BaseBall

Answer: Simplified baseball rules

Answer: America's past-time

Answer: Base-ball

Answer: Globalization of baseball

Answer: Basebal

Answer: Base ball

Answer: American rounders


Input: Which film has the director born later, Razmeđa or Bullyparade – Der Film?

Answer: Bullyparade – Der Film


Input: when are the fa cup semi finals played

Answer: the new Wembley Stadium


Input: Gunn-toting Wyatt Earp survived to what age?

Answer: 80

Answer: eighty


Input: In what city was Erick Benzi born?

Answer: ["Marseille", "Massaliotes", "Massalia", "Marsailles", "Marseilles", "Marsielles", "Marsielle", "City of Marseille", "Marsaille", "Marsiglia", "Marseille, France", "Ville-sans-Nom", "Sans-Nom"]


Input: In what city was Rie Oh born?

Answer: ["Tokyo", "Tōkyō", "Tôkyô", "Tokyo-to", "Tokyo Metropolitan prefecture", "Tōkyō-to", "Tôkyô-to", "Tokyo Metropolis", "Tokio", "Tokyo Prefecture"]


Input: How long is the term of a member from the house of the body providing oversight for the commission that issued the report in 1958?

Answer: five-year term


Input: What is Andreas Rüdiger's occupation?

Answer: ["philosopher"]


Input: What weekly publication in Andy Bloch's birthplace is issued by Harvard's most intense rival?

Answer: Yale Herald


Input: When did Adolphe-Philippe Caron's father die?

Answer: 13 December 1876


Input: Are both high schools, Geneseo Middle/High School and Queen Of Peace High School (Illinois), located in the same country?

Answer: yes


Input: What is Stanley Peiris's occupation?

Answer: ["composer"]


Input: Who does the person regarded as a feminist during her time play in A League of Their Own?

Answer: taxi dancer ``All the Way ''Mae Mordabito


Input: Write a function to find minimum of two numbers.

Answer:
def min_of_two( x, y ):
    if x < y:
        return x
    return y

assert min_of_two(10,20)==10
assert min_of_two(19,15)==15
assert min_of_two(-10,-20)==-20


Input: In what city was David Oppenheim born?

Answer: ["Calabasas", "Calabasas, California"]


Input: "About which British politician did Francois Mitterrand say, ""She has the mouth of Marilyn Monroe and the eyes of Caligula?"""

Answer: Baroness Margaret Thatcher

Answer: Lady Thatcher

Answer: Margret thatcher

Answer: The Baroness Thatcher

Answer: Margret Thatcher

Answer: The Lady Thatcher

Answer: Margaret Tatcher

Answer: Margaret Thatcher

Answer: Mrs T

Answer: Mrs Thatcher

Answer: Margaret Hilda Thatcher, Baroness Thatcher

Answer: Mrs. T

Answer: Baroness Thatcher of Kesteven

Answer: Margaret Thatcer

Answer: Margaret Thatcher's

Answer: Mrs Finchley

Answer: Prime Minister Margaret Thatcher

Answer: Thatcherian

Answer: Margaret Thacher

Answer: Margaret Thatcher bibliography

Answer: Margaret Thatcher Day

Answer: M thatcher

Answer: Lady T

Answer: Maggie Thatcher

Answer: Margaret Hilda Thatcher

Answer: Milk snatcher

Answer: Baroness The Margaret Thatcher

Answer: Margaret Thatcher, Baroness Thatcher

Answer: Margaret Hilda Roberts Thatcher

Answer: Margeret Thatcher

Answer: Margareth Thatcher

Answer: Mrs Denis Thatcher

Answer: Margaret Hilda Roberts

Answer: Mrs. Thatcher

Answer: Milk Snatcher

Answer: Margaret Thatcher Library

Answer: Margaret thatcher

Answer: Baroness Thatcher

Answer: Margeret thatcher


Input: who wrote something in the way she moves

Answer: James Taylor


Input: He who garnered the most electoral votes in 1824 had a nephew named what?

Answer: Daniel Smith Donelson


Input: Who directed a 2016 musical filmed in Howth?

Answer: John Carney


Input: "What words did Lewis Carroll combine to come up with the term ""chortle"" in Through a Looking-Glass?"

Answer: Chuckle and snort


Input: Are the directors of films Poonthenaruvi and Fun In The Barracks both from the same country?

Answer: no


Input: Are Ahmad Syafi'i Maarif and Mukund Varadarajan of the same nationality?

Answer: no


Input: Toronto's Insight Sports is partially owned by what Canadian businessman?

Answer: Lawrence M. Tanenbaum


Input: What county contains Glendale, found in the state which is in the center of the U.S.?

Answer: Saline County


Input: In Chaplin's The Great Dictator, which country did the dictator rule?

Answer: Tomania

Answer: Great Dictator

Answer: Adenauer Hynkel

Answer: Hynkel

Answer: Adenoid Hinkel

Answer: Benzino Napalani

Answer: Tomainia

Answer: The Great Dictator

Answer: Hynckel

Answer: Adenoid Hynkel


Input: Tess Trueheart is the wife of what comic strip character?

Answer: Dick tracy watch

Answer: Plainclothes Tracy

Answer: Dick Tracey

Answer: Dick Tracy watch

Answer: Dick Tracy

Answer: Dick Tracy (radio series)


Input: What poem by this writer born in September 1872 was used in devotional and spoken word recordings?

Answer: Desiderata


Input: What is Jacopo Melani's occupation?

Answer: ["composer"]


Input: Which role did Rupert Everett play in The Madness of King George?

Answer: HRH The Prince Charles, Duke of Rothesay

Answer: HRH The Prince of Wales

Answer: Charles, prince of wales

Answer: Charles, Duke of Cornwall

Answer: Charles Windsor

Answer: Prince Charles of Edinburgh

Answer: Prince Charles of the United Kingdom

Answer: War of the Waleses

Answer: Princes Charles

Answer: The Prince Charles

Answer: HRH Prince Charles

Answer: The Prince Of Wales

Answer: Charles of the United Kingdom

Answer: Charles Philip Arthur Windsor

Answer: Prince Charles

Answer: His Highness Prince Charles

Answer: Charles Windsor, Prince of Wales

Answer: HM The Duke of Cornwall

Answer: Prince Charles, Wales

Answer: Charles, Price of Wales

Answer: Charles Philip Arthur George

Answer: Next king of the United Kingdom

Answer: The Duke of Cornwall

Answer: Charles Philip Arthur George Windsor-Mountbatten

Answer: Prince of Wales Charles

Answer: HRH Prince Charles, Prince of Wales

Answer: The Prince Charles, Duke of Rothesay

Answer: Charles, prince of Wales

Answer: The Duke of Rothesay

Answer: Charles, Duke of Rothesay

Answer: Next king of the UK

Answer: Charles, Crown Prince of Britain

Answer: Prince Charles, Duke of Cornwal

Answer: Prince Charles, Duke of Rothesay

Answer: Next king of Australia

Answer: Charles of Wales

Answer: Monstrous carbuncle

Answer: The Prince Charles, Prince of Wales

Answer: HRH The Prince Charles

Answer: Charles, Prince of Wales

Answer: Prince Charles of Wales

Answer: HRH The Duke of Cornwall

Answer: HRH The Duke of Rothesay

Answer: Prince Charles, Prince of Wales

Answer: Next king of Canada

Answer: Charles of Edinburgh

Answer: Charles III of the United Kingdom

Answer: Prince Charles, the Duke of Rothesay

Answer: HRH The Prince of Wales (Prince Charles)

Answer: Charles prince of wales

Answer: Prince Charles, Duke of Cornwall

Answer: Charles Philip Arthur George Mountbatten-Windsor

Answer: Charles, Duke of Cornwal

Answer: The Prince of Wales

Answer: Charles Mountbatten-Windsor

Answer: Prince charles

Answer: Charles V of England

Answer: Charles, the Prince of Wales


Input: What is Hugo Becker's occupation?

Answer: ["actor", "actress", "actors", "actresses"]


Input: what was the name of the hamburger guy in popeye

Answer: Wimpy


Input: In which country is Logan, a city in the county sharing a border with Emerald Beach's county in the state where The Ozarks takes place?

Answer: U.S.


Input: How many seasons was the lyricist of "Forever" a judge on American Idol?

Answer: one


Input: what was the birth year of the fifth governor of a British colony in north America that existed from 1632 to 1776?

Answer: 1626


Input: Version 7 of this vehicle with the same name as the company that produced AMC 35 is part of what series?

Answer: supermini


Input: What is the country the Allies went to after leaving the region under which WINEP bundles the countries of northwest Africa an instance of?

Answer: European Union member state


Input: Write a function to count the most common character in a given string.

Answer:
from collections import Counter
def max_char(str1):
    temp = Counter(str1)
    max_char = max(temp, key = temp.get)
    return max_char

assert max_char("hello world")==('l')
assert max_char("hello ")==('l')
assert max_char("python pr")==('p')


Input: who is the longest serving actor in eastenders

Answer: Adam Woodyatt


Input: how many membranes do gram negative bacteria have

Answer: two


Input: When is Karl Johann Von Königsmarck's father's birthday?

Answer: 24 March 1634


Input: Who was born earlier, Zehra Borazancı or Hassan Gouled Aptidon?

Answer: Hassan Gouled Aptidon


Input: What is Pathit Pisitkul's occupation?

Answer: ["actor", "actress", "actors", "actresses"]


Input: In what city was Ed Sullivan born?

Answer: ["New York City", "NYC", "New York", "the five boroughs", "Big Apple", "City of New York", "NY City", "New York, New York", "New York City, New York", "New York, NY", "New York City (NYC)"]


Input: Who had a 60s No 1 hit with I'm Telling You Now?

Answer: Freddy and the Dreamers

Answer: Freddie and the Dreamers

Answer: Freddie and the dreamers

Answer: Freddie & the Dreamers

Answer: Freddie & The Dreamers


Input: Where was the director of film Perfume De Gardênia born?

Answer: Ribeirão Preto


Input: What educational institution is at home in the city of the headquarter of Askville's owner?

Answer: University of Washington


Input: when was gold discovered in the klondike region of the yukon

Answer: August 16, 1896


Input: when was fast times at ridgemont high made

Answer: 1982


Input: the invasion of kuwait by iraq resulted in a conflict that became known as

Answer: the first Gulf War


Input: What was Bob Hoskins' profession when he worked in the circus?

Answer: Fire-eater

Answer: Eating fire

Answer: Fire eating

Answer: Fire-eating

Answer: Fire swallowing

Answer: Fire eater

Answer: Fire Eating


Input: Where did the director of film Ten Canoes study?

Answer: Australian Film, Television and Radio School


Input: Are Beyazıt Tower and Miniatürk both in Istanbul, Turkey?

Answer: yes


Input: When did the cleveland rams move to the city where the subject of "Heaven Adores You" died?

Answer: 1946


Input: Write a function to extract unique values from the given dictionary values.

Answer:
def extract_unique(test_dict):
  res = list(sorted({ele for val in test_dict.values() for ele in val}))
  return res


Input: Who is the spouse of the performer of Soldier's Plea?

Answer: Anna Gordy Gaye


Input: What is Fred C. Newmeyer's occupation?

Answer: ["film director", "movie director", "director", "motion picture director", "film producer", "movie producer", "producer", "actor", "actress", "actors", "actresses"]


Input: who is the current madam president in the senate

Answer: Orrin Hatch


Input: Ezhou and Yangzhong are both cities in what country?

Answer: China


Input: when does season 3 of live pd start

Answer: September 21, 2018


Input: Who is the current prime minister of the country where Rio Cobre is located?

Answer: Andrew Holness


Input: Which private research university is located in Chestnut Hill, Massachusetts Boston College or Stanford University?

Answer: Boston College


Input: Where was the director of film Food For Scandal born?

Answer: Ogden


Input: where are the upper motor neurons that control skeletal muscles found

Answer: the precentral gyrus


Input: Write a function to find number of even elements in the given list using lambda function.

Answer:
def count_even(array_nums):
   count_even = len(list(filter(lambda x: (x%2 == 0) , array_nums)))
   return count_even


Input: Do director of film Crocodile Dundee In Los Angeles and director of film Life At The Top (Film) have the same nationality?

Answer: no


Input: Who was the founder of the Back to Africa movement who largely inspired Rastafarianism?

Answer: MARCUS GARVEY

Answer: Marcus Garvey Moziah Jr

Answer: Marcus Aurelius Garvey

Answer: Marcus Garvey

Answer: Marcus Moziah Garvey

Answer: Marcus M. Garvey

Answer: Marcus Mosiah Garvey

Answer: Marcus garvey

Answer: Marcus Garvy

Answer: Garveyan


Input: Where did the director of film Confession (1937 Film) die?

Answer: Hollywood


Input: What lobby group from the country where Burcu Düner is from wants the border with Armenia opened?

Answer: Turkish business lobby


Input: What was the franchise, in which Anton Šťastný played 9 seasons, renamed after moving in 1995?

Answer: Colorado Avalanche


Input: Write a function to caluclate arc length of an angle.

Answer:
def arc_length(d,a):
    pi=22/7
    if a >= 360:
        return None
    arclength = (pi*d) * (a/360)
    return arclength


Input: when did harry potter and the deathly hallows come out

Answer: 21 July 2007


Input: What Bible college located in Louisville, Kentucky, was attended by Paul R. House who served for a time as president of the Evangelical Theological Society?

Answer: Southern Baptist Theological Seminary


Input: What is the date of death of Jane Alice Morris's mother?

Answer: 26 January 1914


Input: Which film has the director who was born first, The Last Winter (2006 Film) or Too Much Wife?

Answer: Too Much Wife


Input: When did George Simpson's birthplace become a province?

Answer: 1873


Input: Which show connects Arthur Darvill and Matt Smith?

Answer: Doctor Who


Input: Which princess took out an injunction against a photographer after he tried to take photographs of her?

Answer: Diana Princess of Wales

Answer: Diana the Princess of Wales

Answer: Diana, princess of Wales

Answer: Princess Diana of Wales

Answer: Princess Dianna

Answer: Diana Spencer, Princess of Wales

Answer: Princess of Wales Diana

Answer: Diana (Princess of Wales)

Answer: Diana Windsor

Answer: Diana Spencer

Answer: Lady Diana

Answer: Princess diana

Answer: Lady Diana Frances Spencer

Answer: Diana Spenser

Answer: Princess Diana

Answer: Princess Diane

Answer: Diana princess of wales

Answer: Diana Frances

Answer: Diana, Princess Of Wales

Answer: Princess Di

Answer: Princess Diaa

Answer: Princess Diana Spencer

Answer: Diana of Wales

Answer: Diana, Princess of Wales

Answer: Diana, Duchess of Rothesay

Answer: Diana of Althorp

Answer: Lady Di

Answer: Dianamania

Answer: Lady Diana Spencer

Answer: Diana Frances Spencer


Input: What is Magic Johnson's real first name?

Answer: Earvin


Input: What cigars are named for the capitol of the country where Granma is located?

Answer: Havana cigars


Input: What instrument is played by the artist of (I) Get Lost?

Answer: violin


Input: What breed of dog did Columbo own?

Answer: Basset Hound

Answer: Bassett hound

Answer: Basset hounds

Answer: Basset hound

Answer: Basid hound


Input: When did the drinking age become 21 in the state where Kaya Wittenburg was born?

Answer: September 1, 1986


Input: Who is Humphrey, Duke Of Gloucester's paternal grandmother?

Answer: Blanche of Lancaster


Input: Who along with Philips developed the CD in the late 70s?

Answer: Tokyo Tsushin Kogyo

Answer: DCR-DVD405E

Answer: DSC-P93

Answer: ソニー株式会社

Answer: DSC-T10

Answer: Sony Corporation

Answer: DCR-TRV38

Answer: DCR-SR35E

Answer: List of Sony shareholders and subsidiaries

Answer: Sony Style

Answer: Sony Corp.

Answer: MODEL-NAME

Answer: Sony Entertainment

Answer: S0ny

Answer: Sony corporation

Answer: The Sony Corporation

Answer: List of Sony products

Answer: DSC-WX100 v1.00

Answer: Sony Electronics

Answer: Sony Europe

Answer: List of assets owned by Sony Corporation

Answer: Sony

Answer: Sony Broadcast & Professional Research Laboratories

Answer: Tokyo Telecommunications Engineering

Answer: Sony EMCS

Answer: Sony (Sony Corporation, Japan)

Answer: Sony Company

Answer: ソニー

Answer: Sony CISC

Answer: Sony Store

Answer: HDR-SR12

Answer: SONY

Answer: DSC-WX100

Answer: Sonī Kabushiki Gaisha

Answer: Sony.com

Answer: Sony Electronics Inc.

Answer: SonyStyle

Answer: Tokyo Telecommunications Engineering Corporation

Answer: Sony Corp

Answer: MMCD

Answer: Sony Group

Answer: Sony City


Input: Do both films Tough to Handle and The Forgotten (2004 film) have the directors from the same country?

Answer: yes


Input: What genre is The Warriors Gate?

Answer: action


Input: who wrote the poem i must go down to the sea again

Answer: John Masefield


Input: Write a function to check whether the given ip address is valid or not using regex.

Answer:
import re
regex = '''^(25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)\.(
			25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)\.(
			25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)\.(
			25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)$'''
def check_IP(Ip):
	if(re.search(regex, Ip)):
		return ("Valid IP address")
	else:
		return ("Invalid IP address")

assert check_IP("192.168.0.1") == 'Valid IP address'
assert check_IP("110.234.52.124") == 'Valid IP address'
assert check_IP("366.1.2.2") == 'Invalid IP address'


Input: The Dutch-Belgian television series that "House of Anubis" was based on first aired in what year?

Answer: 2006


Input: Reader's Digest and Scientific American are both what?

Answer: magazine


Input: the cast of the big valley tv show

Answer: Barbara Stanwyck

Answer: Linda Evans

Answer: Lee Majors

Answer: Peter Breck

Answer: Richard Long


Input: "Which entertainer said, ""He was into animal husbandry--until they caught him at it?"

Answer: The Irish Ballad (Song)

Answer: Thomas Andrew Lehrer

Answer: Tom Lehr

Answer: National Brotherhood Week (song)

Answer: We Will All Go Together When We Go

Answer: Lehrer, Thomas Andrew

Answer: Tom Lehrer

Answer: Hen3ry

Answer: The Vatican Rag

Answer: Vatican rag

Answer: The Irish Ballad (song)

Answer: The Irish Ballad

Answer: The Physical Revue

Answer: Proud to be a Soilder


Input: Write a python function to check whether the length of the word is even or not.

Answer:
def word_len(s):
    s = s.split(' ')
    for word in s:
        if len(word)%2==0:
            return True
        else:
          return False

assert word_len("program") == False
assert word_len("solution") == True
assert word_len("data") == True


Input: who wrote don't stop me now by queen

Answer: Freddie Mercury


Input: What 1998 film with Arthur Nascarella was directed by Tony Scott?

Answer: Enemy of the State


Input: who played adam newman on the young and restless

Answer: Justin Hartley

Answer: Chris Engen

Answer: Michael Muhney


Input: Which was the first European country to abolish capital punishment?

Answer: Norvège

Answer: Mainland Norway

Answer: Norway

Answer: Norvege

Answer: Noregur

Answer: NORWAY

Answer: Norwegian state

Answer: Etymology of Norway

Answer: Noruega

Answer: Norwegen

Answer: ISO 3166-1:NO

Answer: Noreg

Answer: Republic of Norway

Answer: Norwegian kingdom

Answer: Kongeriket Noreg

Answer: Name of Norway

Answer: Kongeriket Norge

Answer: Noorwegen

Answer: Kingdom of Norway

Answer: Sport in Norway

Answer: Norwegia

Answer: Royal Kingdom of Norway


Input: who wrote the first computer virus called elk cloner

Answer: Rich Skrenta


Input: Which television series did Deborah Ann Woll play in that was a spin-off of Marvel's Daredevil?

Answer: The Punisher


Input: Which terrorist group murdered Italian Prime Minister Aldo Moro?

Answer: Brigate rosse

Answer: Brigate Rosse

Answer: Red Brigades

Answer: Red Brigade

Answer: Brigate-Rosse

Answer: Italian Red Brigade

Answer: The Red Brigades

Answer: Italian Red Brigades

Answer: Red Brigades - Union of Combatant Communists


Input: In 1999 Anna Kournikova signed a lucrative contract to model what?

Answer: Bras

Answer: Bras (disambiguation)


Input: Who was the only Spice Girl not to have a middle name?

Answer: My Love Is For Real (Victoria Beckham song

Answer: Romeo James Beckham

Answer: Harper Seven Beckham

Answer: Posh Spice

Answer: Victoria addams

Answer: Victoria Beckham

Answer: Victoria Adams Beckham

Answer: Harper Beckham

Answer: Victoria Caroline Beckham

Answer: I'd Give It All Away

Answer: Come Together (Victoria Beckham album)

Answer: Posh spice

Answer: The Hustla

Answer: My Love Is For Real (Victoria Beckham song)

Answer: Victoria beckham


Input: What nationality were Mother Teresa's parents?

Answer: Albanian

Answer: Albanian (disambiguation)


Input: What was the first sitcom to reach No 1 in the Nielsen ratings?

Answer: Mrs. McGillicuddy

Answer: Lucy and Ethel

Answer: Mrs. MacGillicuddy

Answer: List of all I Love Lucy Cast

Answer: Lucy McGillicuddy

Answer: Herman shlup

Answer: Lucy in Connecticut

Answer: I love Lucy Characters

Answer: I love Lucy

Answer: Vita-meata-vega-min

Answer: Lucy MacGillicuddy

Answer: I Love Lucy

Answer: I love lucy


Input: In what country is the administrative territorial entity that is found in the city where Schloss Favorite is located?

Answer: Germany


Input: Who refuted the statement that the Queen was critical of the jurisdiction that the European Economic and Social Committee applies to?

Answer: Deputy Prime Minister Nick Clegg


Input: when did the original my little pony come out

Answer: 1981


Input: How did the signer of the Civil Rights Act of 1991 try to convey that he was the stronger, tougher candidate?

Answer: presenting himself as a decisive leader and contrasted Kerry as a "flip-flopper."


Input: who won the battle of the sexes in 1973

Answer: Billie Jean King


Input: Which film has the director who was born earlier, The Sea Hornet or The Program (2015 Film)?

Answer: The Sea Hornet


Input: What is the date of death of the performer of song Duodenum (Song)?

Answer: December 4, 1993


Input: how many seasons of blue heelers are there

Answer: 13


Input: What record label does the songwriter who wrote you can't make old friends sign?

Answer: Reprise Records


Input: Alan Furst and Lee Child are what?

Answer: is a British author


Input: Manchester City Football Club is a football club in Manchester, England, the club moved to the City of Manchester Stadium, in Manchester, England, also known as the Etihad Stadium for sponsorship reasons, in what year?

Answer: 2003


Input: Write a python function to convert a list of multiple integers into a single integer.

Answer:
def convert(list):
    s = [str(i) for i in list]
    res = int("".join(s))
    return (res)


Input: What video game magazine was a part subsidiary of a Chinese-owned venture capital organization?

Answer: GamePro


Input: What is Greg Miller's occupation?

Answer: ["cartoonist", "graphic artist", "animator", "illustrator", "animator", "animation artist", "cartoonist", "graphic artist", "storyboard artist", "story artist", "visualizer"]


Input: Write a function to split the given string at uppercase letters by using regex.

Answer:
import re
def split_list(text):
  return (re.findall('[A-Z][^A-Z]*', text))

assert split_list("LearnToBuildAnythingWithGoogle") == ['Learn', 'To', 'Build', 'Anything', 'With', 'Google']
assert split_list("ApmlifyingTheBlack+DeveloperCommunity") == ['Apmlifying', 'The', 'Black+', 'Developer', 'Community']
assert split_list("UpdateInTheGoEcoSystem") == ['Update', 'In', 'The', 'Go', 'Eco', 'System']


Input: What is Christoph Schlingensief's occupation?

Answer: ["theatrical director", "stage director", "theatre director", "play director", "director", "theater director"]


Input: Write a function to check whether the given string is ending with only alphanumeric characters or not using regex.

Answer:
import re
regex = '[a-zA-z0-9]$'
def check_alphanumeric(string):
	if(re.search(regex, string)):
		return ("Accept")
	else:
		return ("Discard")

assert check_alphanumeric("dawood@") == 'Discard'
assert check_alphanumeric("skdmsam326") == 'Accept'
assert check_alphanumeric("cooltricks@") == 'Discard'


Input: Who acted in "Shanghai Knights" and voiced Lightning McQueen in the "Cars" franchise?

Answer: Owen Wilson


Input: In what country are the cities Guilin and Ankang located?

Answer: China


Input: Where are the metalcore band from, that released second full-length album titled Rage?

Answer: Atlanta, Georgia


Input: What college did the writer of The Picture of Dorian Gray attend?

Answer: Trinity College


Input: In which country is the deepwater port of Trondheim?

Answer: Norvège

Answer: Mainland Norway

Answer: Norway

Answer: Norvege

Answer: Noregur

Answer: NORWAY

Answer: Norwegian state

Answer: Etymology of Norway

Answer: Noruega

Answer: Norwegen

Answer: ISO 3166-1:NO

Answer: Noreg

Answer: Republic of Norway

Answer: Norwegian kingdom

Answer: Kongeriket Noreg

Answer: Name of Norway

Answer: Kongeriket Norge

Answer: Noorwegen

Answer: Kingdom of Norway

Answer: Sport in Norway

Answer: Norwegia

Answer: Royal Kingdom of Norway


Input: Write a function to sort a list of lists by length and value.

Answer:
def sort_sublists(list1):
      list1.sort()
      list1.sort(key=len)
      return  list1


Input: where is womens rugby world cup being held

Answer: Ireland


Input: What is Christine Juarbe's occupation?

Answer: ["actor", "actress", "actors", "actresses", "model", "fashion model", "sitter", "poser"]


Input: In what city was Erika M. Anderson born?

Answer: ["South Dakota", "SD", "South Dakota, United States", "State of South Dakota", "SoDak", "S. Dakota", "The Mount Rushmore State", "The Coyote State", "S. Dak.", "S.D."]


Input: When was the  Prime Minister of India after which V. K. Krishna Menon was regarded as the second most powerful man in India born?

Answer: 14 November 1889


Input: In which American state are the Merril Collection and the Burke Museum of Fine Arts?

Answer: Texas (U.S. State)

Answer: US-TX

Answer: Texos

Answer: Texas

Answer: Lone Star State

Answer: Texas, USA

Answer: Religion in Texas

Answer: Texas (state)

Answer: Lake Ozark, Texas

Answer: Christianity in Texas

Answer: The State of Texas

Answer: Twenty-eighth State

Answer: Texas-sized

Answer: Texas (State)

Answer: 28th State

Answer: The Lone Star State

Answer: Twenty-Eighth State

Answer: Texas, United States

Answer: Texas (U.S. state)

Answer: Texass

Answer: State of Texas

Answer: Everything is bigger in Texas

Answer: 28th state


Input: When did the director of film You Will Be A Duchess die?

Answer: 19 May 1960


Input: Do director of film Kaalbela and director of film The Most Beautiful Wife have the same nationality?

Answer: no


Input: What is Ruth Harriet Louise's occupation?

Answer: ["photographer", "photog", "photographers"]


Input: where was king arthur legend of the sword shot

Answer: Windsor Great Park

Answer: Warner Bros. Studios, Leavesden

Answer: Snowdonia


Input: how many seats in ontario to have party status

Answer: 8 seats


Input: which internet web portal changed its name to altaba inc

Answer: Yahoo! Inc


Input: What is the country where Nissedal is located named after?

Answer: north


Input: who has more la liga goals messi or ronaldo

Answer: Messi


Input: Are both A Face in the Fog and Azonto Ghost from the same country?

Answer: no


Input: In which decade was Alzheimer's disease first clinically described?

Answer: The First Decade

Answer: First decade

Answer: The First Decade (disambiguation)


Input: How many museums are there in the city where Tadeusz Peiper died?

Answer: 60


Input: Who constructed the world's first laser?

Answer: Ted Maiman

Answer: Theodore Harold Maiman

Answer: Theodore H. Maiman

Answer: Theodore Maiman


Input: Which famous brother of Talia Shire does not share her last name?

Answer: Ford coppola

Answer: Coppola, Francis Ford

Answer: Ff coppola

Answer: Francis Coppola

Answer: Francis Ford Coppola filmography

Answer: Godfather of Wine

Answer: Francis Ford Coppola

Answer: List of Francis Ford Coppola films


Input: Write a function to check if the given tuple has any none value or not.

Answer:
def check_none(test_tup):
  res = any(map(lambda ele: ele is None, test_tup))
  return (res)

assert check_none((10, 4, 5, 6, None)) == True
assert check_none((7, 8, 9, 11, 14)) == False
assert check_none((1, 2, 3, 4, None)) == True


Input: Where is the headquarters of presenters of the IEEE Edison Medal award?

Answer: Piscataway


Input: Which industry do Richard Hawley and Chicago's Catherine belong to?

Answer: rock band


Input: In what city was Róbert Fazekas born?

Answer: ["Szombathely", "Steinamanger"]


Input: Who is the mayor of the capital of Oklahoma?

Answer: Mick Cornett


Input: In what city was Philipp Crone born?

Answer: ["Cologne", "Köln", "Kreisfreie Stadt Köln", "Cologne, Germany", "Cologne (Germany)"]


Input: Write a function to create a list taking alternate elements from another given list.

Answer:
def alternate_elements(list1):
    result=[]
    for item in list1[::2]:
        result.append(item)
    return result

assert alternate_elements(["red", "black", "white", "green", "orange"])==['red', 'white', 'orange']
assert alternate_elements([2, 0, 3, 4, 0, 2, 8, 3, 4, 2])==[2, 3, 0, 8, 4]
assert alternate_elements([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])==[1,3,5,7,9]


Input: who was jesus in the greatest story ever told

Answer: Max von Sydow


Input: when did once upon a time in venice come out

Answer: June 16, 2017


Input: Who played Mr. Carlson on the show WKRP in City A where City A is where The Killing of a Sacred Deer was filmed?

Answer: Gordon Jump


Input: What city does Bundestag and Reichstag building have in common?

Answer: Berlin


Input: In which country is the deepwater ort of Brindisi?

Answer: Environment of Italy

Answer: Italiën

Answer: Subdivisions of Italy

Answer: Republic of Italy

Answer: ItalY

Answer: ISO 3166-1:IT

Answer: Etymology of Italy

Answer: Itali

Answer: Pollution in Italy

Answer: Administrative divisions of Italy

Answer: Austrian Empire (Italy)

Answer: Italija

Answer: Italie

Answer: Italia

Answer: Italian Republic

Answer: Second Italian Republic

Answer: Italy

Answer: Italio

Answer: Repubblica Italiana

Answer: Itàlia

Answer: The Italian republic


Input: What is Anjali Sudhakar's occupation?

Answer: ["actor", "actress", "actors", "actresses"]


Input: When did Sang Nila Utama come to the country that released The Wedding Game?

Answer: 1299


Input: Write a function to remove an empty tuple from a list of tuples.

Answer:
def remove_empty(tuple1): #L = [(), (), ('',), ('a', 'b'), ('a', 'b', 'c'), ('d')]
   tuple1 = [t for t in tuple1 if t]
   return tuple1


Input: What is Kazuyoshi Sekine's occupation?

Answer: ["playwright", "dramatist", "playwrite", "scriptwriter"]


Input: the centers of most cities became business areas after the invention of what

Answer: skyscraper


Input: What is Paul Caillaud's occupation?

Answer: ["politician", "political leader", "political figure", "polit.", "pol"]


Input: Where is the university Edward Hugh attended located?

Answer: Westminster, central London, near the boundary between Covent Garden and Holborn


Input: who is buried at the tennessee state capitol

Answer: William Strickland


Input: Who was the last man to win Wimbledon and the French open singles in the same year?

Answer: Björn Borg

Answer: Bjoern Rune Borg

Answer: Bjørn borg

Answer: Bjoern Borg

Answer: Björn Rune Borg

Answer: Bjorn Borg

Answer: Bjorn Rune Borg

Answer: Bjørn Borg


Input: What nationality is John Harbaugh's father?

Answer: American


Input: What is Jonathan Le Billon's occupation?

Answer: ["actor", "actress", "actors", "actresses"]


Input: which president was the general in charge of the union army during the civil war

Answer: Grant


Input: Hot Coffee, Mississippi sometimes shares a zipcode with a nearby city with what population at the 2010 census?

Answer: 2,586


Input: where did aaron judge play baseball last year

Answer: New York Yankees


Input: Vladimir Yaroshenko was a soloist with the choreographer who dominated Russian ballet for how many years?

Answer: 30


Input: What is Carsten Carlsen's occupation?

Answer: ["composer", "pianist"]


Input: What does the Hacker-Pschorr Brewery have to limit in order to comply with German regulations?

Answer: ingredients in beer


Input: Who sang with Crosby, Stills and Young?

Answer: Graham William Nash

Answer: Graham Nash


Input: when did they launch the international space station

Answer: 1998


Input: What is the capital of the region where Basit Ali was born?

Answer: West Pakistan


Input: Who is the spouse of the performer of song Chasing The Sun (Hilary Duff Song)?

Answer: Mike Comrie


Input: The athlete that became the highest-paid went to manchester United when?

Answer: 2003


Input: In what city was Mick Flynn born?

Answer: ["Cardiff", "Caerdydd", "Cardiff, Wales"]


Input: When is the director of film Robbery (1897 Film) 's birthday?

Answer: 3 October 1869


Input: What county shares a border with the county containing Johnson Township?

Answer: Franklin County


Input: when did the iphone 7 plus come put

Answer: September 16, 2016


Input: Who preceded Hosni Mubarak as President of Egypt?

Answer: Muhammad Anwar al-Sadat

Answer: Anwar al-Sadat

Answer: Anwar as-Sādāt

Answer: Muhammad Anwar El-Sadat

Answer: Anwar sadat

Answer: Anwar Sedat

Answer: Anwar El-Sadat

Answer: Anwar es-Sadat

Answer: 'Anwar as-Sadat

Answer: Anouar El-Sadate

Answer: President El-Sadat

Answer: Anwar Al-Sadat

Answer: Anwar as-Sadat

Answer: Saddat

Answer: Anvar Sadat

Answer: Mohammed el-Sadat

Answer: Anwar Al Sadat

Answer: Anwar Sādāt

Answer: السادات

Answer: Anwar es Sadat

Answer: ʼAnwar as-Sadāt

Answer: Anwar el Sadat

Answer: Muḥammad Anwar as-Sādāt

Answer: أنور السادات

Answer: Mohamed Anwar Al-Sadat

Answer: Anwar al- Sadat

Answer: Mohammed Sadat

Answer: ʼAnwar as-Sadat

Answer: Anwar El Sadat

Answer: Anwar Sadat

Answer: Muhammed Anwar al-Sadat

Answer: Mohammed al-Sadat

Answer: Anwar el-Sadat

Answer: Muhammad Anwar as-Sadat


Input: What city is the place Kara Vâsıf Bey died located in?

Answer: Istanbul


Input: who belongs to the absurd school of drama

Answer: Samuel Beckett


Input: Are the directors of both films Sharmeelee and American Hustle from the same country?

Answer: no


Input: Amelia Earhart was born in which state?

Answer: Kans.

Answer: Demographics of Kansas

Answer: Economy of Kansas

Answer: Kansasanian Soviet Socialist Republic

Answer: Politics of Kansas

Answer: Law of Kansas

Answer: Climate of Kansas

Answer: Kan.

Answer: Cansas

Answer: Kansas

Answer: State of Kansas

Answer: Geography of Kansas

Answer: Culture of Kansas

Answer: Transportation in Kansas

Answer: KS, USA

Answer: Thirty-fourth State

Answer: Brownbackistan

Answer: Sunflower State

Answer: Transport in Kansas

Answer: Religion in Kansas

Answer: The Sunflower State

Answer: Kansas (State)

Answer: Sports in Kansas

Answer: Thirty-Fourth State

Answer: Kansas (U.S. state)

Answer: Kansas, United States

Answer: 34th State

Answer: Kansas (state)


Input: When did the performer of song A Pretty Girl Milking Her Cow die?

Answer: June 22, 1969


Input: Did Wilhelm Heinrich Erb and Biagio Biagetti have the same nationality?

Answer: no


Input: What is the Science Museum, in the city where Amalia Molina was born, a part of?

Answer: Spanish National Research Council


Input: When was the first electric version of Paul D'amour's instrument made?

Answer: the 1930s


Input: In what city was Jim born?

Answer: ["Arizona Territory"]


Input: Pee Wee Herman made his TV debut on which show?

Answer: Extreme Gong

Answer: The Gong Show

Answer: The Popsicle Twins

Answer: Gong show

Answer: Gongshow

Answer: Gong Show


Input: What nationality is the director of film Borunbabur Bondhu?

Answer: India


Input: Were Heinrich Gerhard Kuhn and Elfie Pertramer from the same country?

Answer: yes


Input: In what city was John A. Shaud born?

Answer: ["Cleveland", "Cleveland, Ohio", "Cleveland, OH"]


Input: Are Arcangelo Di Cola and Tarik Tissoudali both from the same country?

Answer: no


Input: What was the title of Kitty Kelley's book about Elizabeth Taylor?

Answer: Elizabeth Taylor: The Last Star


Input: what was the largest margin of victory in a presidential election

Answer: 1.000


Input: What was Elton John's first US No 1 hit?

Answer: Crocodile Rock

Answer: Crocodile rock


Input: Write a python function to check whether every even index contains even numbers of a given list.

Answer:
def even_position(nums):
	return all(nums[i]%2==i%2 for i in range(len(nums)))

assert even_position([3,2,1]) == False
assert even_position([1,2,3]) == False
assert even_position([2,1,4]) == True


Input: when was i'll be home for christmas released

Answer: 1943


Input: Who duetted with Barbra Streisand on Till I Loved You in 1988?

Answer: Johnson, Don

Answer: Don Johnson


Input: Write a function to increment the numeric values in the given strings by k.

Answer:
def increment_numerics(test_list, K):
  res = [str(int(ele) + K) if ele.isdigit() else ele for ele in test_list]
  return res


Input: Write a function to solve tiling problem.

Answer:
def get_noOfways(n):
    if (n == 0):
        return 0;
    if (n == 1):
        return 1;
    return get_noOfways(n - 1) + get_noOfways(n - 2);

assert get_noOfways(4)==3
assert get_noOfways(3)==2
assert get_noOfways(5)==5


Input: Write a python function to find the first repeated character in a given string.

Answer:
def first_repeated_char(str1):
  for index,c in enumerate(str1):
    if str1[:index+1].count(c) > 1:
      return c
  return "None"

assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"


Input: Write a python function to count the number of rotations required to generate a sorted array.

Answer:
def count_Rotation(arr,n):
    for i in range (1,n):
        if (arr[i] < arr[i - 1]):
            return i
    return 0

assert count_Rotation([3,2,1],3) == 1
assert count_Rotation([4,5,1,2,3],5) == 2
assert count_Rotation([7,8,9,1,2,3],6) == 3


Input: What was Clive Sinclair's personal transport vehicle called?

Answer: C.V

Answer: C.5

Answer: C5 (disambiguation)

Answer: C 5

Answer: C V

Answer: C-5

Answer: C05

Answer: C5


Input: In what city was Parnelli Jones born?

Answer: ["Texarkana", "Texarkana, Arkansas"]


Input: Which star of Cheers co-starred with ?Whoopi Goldberg in Made in America?

Answer: Ted danson

Answer: Edward Danson

Answer: Ted Danson

Answer: Ted Dansen


Input: Which album came out first, Does Fort Worth Ever Cross Your Mind or The Soul Album?

Answer: The Soul Album


Input: The university where Peter Charanis was the Voorhees Professor of History is in what state?

Answer: New Jersey


Input: when will game of thrones season 7 will be aired

Answer: July 16, 2017


Input: What was the profession of William Eugene Smith?

Answer: Photographist

Answer: Photographer

Answer: Freelance photographer

Answer: Freelance Photography

Answer: Photographr


Input: Who was the first leader of the independent country that Zack Mwekassa held a citizenship?

Answer: Fulbert Youlou


Input: Write a function to remove everything except alphanumeric characters from the given string by using regex.

Answer:
import re
def remove_extra_char(text1):
  pattern = re.compile('[\W_]+')
  return (pattern.sub('', text1))

assert remove_extra_char('**//Google Android// - 12. ') == 'GoogleAndroid12'
assert remove_extra_char('****//Google Flutter//*** - 36. ') == 'GoogleFlutter36'
assert remove_extra_char('**//Google Firebase// - 478. ') == 'GoogleFirebase478'


Input: In TV's All In The Family what was Mike and Gloria's son called?

Answer: Joey (disambiguation)

Answer: Joey (song)

Answer: Joey (film)

Answer: Joey


Input: When did trolley buses stop running in the city where Godfrey Tanner died?

Answer: 2 October 1966


Input: Who is the paternal grandmother of Andronikos Angelos Palaiologos?

Answer: Theodora of Arta


Input: who sings dont you wish your girlfriend was hot like me

Answer: The Pussycat Dolls


Input: What is Frederick Berry's occupation?

Answer: ["politician", "political leader", "political figure", "polit.", "pol"]


Input: What are the names of the current members of  American heavy metal band who wrote the music for  Hurt Locker The Musical?

Answer: Hetfield and Ulrich, longtime lead guitarist Kirk Hammett, and bassist Robert Trujillo.


Input: How many species of wildlife habitat live in the mountain range where Matternorn is located?

Answer: 30,000 species


Input: When did the continent where the largest country within it held the football tournament become a collection of independent states?

Answer: the first quarter of the 19th century


Input: How many caps for England did Lee Devonshire's son win ?

Answer: eight


Input: When was the performer of song White Summer born?

Answer: 9 January 1944


Input: where does the tap water in london come from

Answer: abstracted from underground sources


Input: The Genève-Servette HC competes in a league know by what name prior to the 2017-2018 season?

Answer: National League A.


Input: What is Carlos María Ramírez's occupation?

Answer: ["journalist", "journo", "journalists", "politician", "political leader", "political figure", "polit.", "pol"]


Input: Which stadium hosts the rivalry game between the all-male, historically African American College located in Atlanta and Tuskegee?

Answer: J. McClung Memorial Stadium


Input: Black or White came from which Michael Jackson album?

Answer: Dangerous (song)

Answer: Dangerous

Answer: Dangerous (album)

Answer: Inherently dangerous

Answer: Dangerous (disambiguation)