Simple Question (Direct)
Simple Question
Q14949887
P57
Q502895
USER
Who was the director of The Love Affairs of Hector Dalmore ?
(Q14949887,P57,c(Q502895))
action filter_type
action find
entity Q14949887
relation P57
type Q502895
['Q14949887', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q14949887 property:P57 ?h . ?h rdf:type ontology:Q502895 }
The Love Affairs of Hector Dalmore
action filter_type
action find
entity The Love Affairs of Hector Dalmore
relation director
type common name
['The Love Affairs of Hector Dalmore', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:The_Love_Affairs_of_Hector_Dalmore property:director ?h . ?h rdf:type ontology:common_name }
[]
common name
Q78874
SYSTEM
Richard Oswald
Q78874
(Q14949887,P57,c(Q502895))
action filter_type
action find
entity Q14949887
relation P57
type Q502895
The director of The Love Affairs of Hector Dalmore was born [ANSWER]
['Q14949887', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q14949887 property:P57 ?h . ?h rdf:type ontology:Q502895 }
Richard Oswald
The director of The Love Affairs of Hector Dalmore was born Richard Oswald
Richard Oswald
action filter_type
action find
entity The Love Affairs of Hector Dalmore
relation director
type common name
['The Love Affairs of Hector Dalmore', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:The_Love_Affairs_of_Hector_Dalmore property:director ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q78874
P161
Q201658
USER
Which film genre does that person star in ?
(c(Q201658),P161,Q78874)
action filter_type
action find_reverse
entity Q78874
relation P161
type Q201658
[{'concept': 'Q201658'}, 'P161', 'Q78874']
SELECT DISTINCT ?d WHERE { ?d property:P161 resource:Q78874 . ?d rdf:type ontology:Q201658 }
Richard Oswald
action filter_type
action find_reverse
entity Richard Oswald
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Richard Oswald']
SELECT DISTINCT ?d WHERE { ?d property:cast_member resource:Richard_Oswald . ?d rdf:type ontology:film_genre }
[]
film genre
Q3786218
SYSTEM
Tales of Hoffman
Q3786218
(c(Q201658),P161,Q78874)
action filter_type
action find_reverse
entity Q78874
relation P161
type Q201658
That person stars in [ANSWER]
[{'concept': 'Q201658'}, 'P161', 'Q78874']
SELECT DISTINCT ?d WHERE { ?d property:P161 resource:Q78874 . ?d rdf:type ontology:Q201658 }
Tales of Hoffman
That person stars in Tales of Hoffman
Tales of Hoffman
action filter_type
action find_reverse
entity Richard Oswald
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Richard Oswald']
SELECT DISTINCT ?d WHERE { ?d property:cast_member resource:Richard_Oswald . ?d rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q78874
P40
Q502895
USER
Who is a child of Richard Oswald ?
(Q78874,P40,c(Q502895))
action filter_type
action find
entity Q78874
relation P40
type Q502895
['Q78874', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q78874 property:P40 ?m . ?m rdf:type ontology:Q502895 }
Richard Oswald
action filter_type
action find
entity Richard Oswald
relation child
type common name
['Richard Oswald', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Richard_Oswald property:child ?m . ?m rdf:type ontology:common_name }
[]
common name
Q316957
SYSTEM
Gerd Oswald
Q316957
(Q78874,P40,c(Q502895))
action filter_type
action find
entity Q78874
relation P40
type Q502895
A child of Richard Oswald is born [ANSWER]
['Q78874', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q78874 property:P40 ?m . ?m rdf:type ontology:Q502895 }
Gerd Oswald
A child of Richard Oswald is born Gerd Oswald
Gerd Oswald
action filter_type
action find
entity Richard Oswald
relation child
type common name
['Richard Oswald', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Richard_Oswald property:child ?m . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q316957 Q741543
P19
Q56061
USER
Is Cergău Mare the birthplace of that person ?
(Q316957,P19,Q741543)
action is_in
entity Q741543
action find
entity Q316957
relation P19
['Q316957', 'P19', 'Q741543']
ASK WHERE { resource:Q316957 property:P19 resource:Q741543 }
Gerd Oswald Cergău Mare
action is_in
entity Cergău Mare
action find
entity Gerd Oswald
relation place of birth
['Gerd Oswald', 'place of birth', 'Cergău Mare']
ASK WHERE { resource:Gerd_Oswald property:place_of_birth resource:Cergău_Mare }
[]
administrative territorial entity
SYSTEM
NO
(Q316957,P19,Q741543)
action is_in
entity Q741543
action find
entity Q316957
relation P19
[ANSWER]
['Q316957', 'P19', 'Q741543']
ASK WHERE { resource:Q316957 property:P19 resource:Q741543 }
No
action is_in
entity Cergău Mare
action find
entity Gerd Oswald
relation place of birth
['Gerd Oswald', 'place of birth', 'Cergău Mare']
ASK WHERE { resource:Gerd_Oswald property:place_of_birth resource:Cergău_Mare }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q78874 Q642330 Q12655717
P19
Q56061
USER
Does Richard Oswald have birthplace at Bandar Charak and Gniaužiai ?
(Q78874,P19,Q642330) (Q78874,P19,Q12655717)
action is_in
entity Q78874
action intersection
action find_reverse
entity Q642330
relation P19
action find_reverse
entity Q12655717
relation P19
['Q78874', 'P19', 'Q642330'] ['Q78874', 'P19', 'Q12655717']
ASK WHERE { resource:Q78874 property:P19 resource:Q642330 . resource:Q78874 property:P19 resource:Q12655717 }
Richard Oswald Bandar Charak Gniaužiai
action is_in
entity Richard Oswald
action intersection
action find_reverse
entity Bandar Charak
relation place of birth
action find_reverse
entity Gniaužiai
relation place of birth
['Richard Oswald', 'place of birth', 'Bandar Charak'] ['Richard Oswald', 'place of birth', 'Gniaužiai']
ASK WHERE { resource:Richard_Oswald property:place_of_birth resource:Bandar_Charak . resource:Richard_Oswald property:place_of_birth resource:Gniaužiai }
[]
administrative territorial entity
SYSTEM
NO
(Q78874,P19,Q642330) (Q78874,P19,Q12655717)
action is_in
entity Q78874
action intersection
action find_reverse
entity Q642330
relation P19
action find_reverse
entity Q12655717
relation P19
[ANSWER]
['Q78874', 'P19', 'Q642330'] ['Q78874', 'P19', 'Q12655717']
ASK WHERE { resource:Q78874 property:P19 resource:Q642330 . resource:Q78874 property:P19 resource:Q12655717 }
No
action is_in
entity Richard Oswald
action intersection
action find_reverse
entity Bandar Charak
relation place of birth
action find_reverse
entity Gniaužiai
relation place of birth
['Richard Oswald', 'place of birth', 'Bandar Charak'] ['Richard Oswald', 'place of birth', 'Gniaužiai']
ASK WHERE { resource:Richard_Oswald property:place_of_birth resource:Bandar_Charak . resource:Richard_Oswald property:place_of_birth resource:Gniaužiai }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q735387
P35
Q502895 Q15617994 Q1048835
USER
Which people are the heads of state of less number of administrative territories and political territories than William McKell ?
(c(Q15617994)|c(Q1048835),P35,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q735387
relation P35
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?h WHERE { VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?k rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P35 resource:Q735387 . { { ?e rdf:type ontology:Q15617994 } UNION { ?e rdf:type ontology:Q1048835 } } } } . FILTER ( ?s < ?n ) }
William McKell
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity William McKell
relation head of state
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?h WHERE { VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:head_of_state resource:William_McKell . { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?e rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?s < ?n ) }
[]
common name designation for an administrative territorial entity political territorial entity
Q352 Q76 Q39619
SYSTEM
Adolf Hitler, Barack Obama, Alī ibn Abī Ṭālib
Q19830768 Q310994 Q19830761 Q1428924 Q297950 Q19464383 Q214029 Q152511 Q19830715 Q152335 Q16105901 Q171977 Q152274 Q312557 Q162269 Q151667 Q167724 Q1359023 Q310775 Q157651 Q6809265 Q13631996 Q237951 Q19831439 Q78492 Q19831437 Q19831432 Q259331 Q151087 Q19810371 Q167699 Q472323 Q400961 Q38987 Q187149 Q855252 Q153688 Q19216 Q188214 Q42939 Q16849387 Q154444 Q2503364 Q2610 Q19831452 Q179858 Q34105 Q152306 Q379203 Q150642 Q122304 Q154936 Q334851 Q555531 Q57488 Q6707612 Q290786 Q773874 Q886786 Q7244117 Q502185 Q6127060 Q2646 Q76437 Q93427 Q19830746 Q76 Q3910 Q57509 Q57502 Q181261 Q157099 Q332709 Q34464 Q334923 Q235454 Q4631 Q2677 Q188409 Q562209 Q3518013 Q8467 Q2601 Q2602 Q2607 Q39619 Q29213 Q69569 Q163945 Q30487 Q223183 Q213791 Q336913 Q156502 Q511888 Q257425 Q58600 Q468847 Q173347 Q13593432 Q77233 Q160318 Q210329 Q205993 Q157068 Q57232 Q1455923 Q613051 Q6127112 Q19831185 Q19831184 Q19831183 Q157121 Q399998 Q81215 Q19831457 Q327203 Q156494 Q1982245 Q152463 Q1855372 Q212188 Q168691 Q17488307 Q273228 Q187697 Q371854 Q661663 Q19861344 Q7726 Q150620 Q313355 Q6225811 Q17582456 Q541507 Q57360 Q310000 Q2667 Q156349 Q332157 Q159585 Q450675 Q37731 Q43915 Q334111 Q19628885 Q33168 Q296054 Q360462 Q380187 Q154912 Q352 Q233984 Q314464 Q1898405 Q130834 Q57261 Q150652 Q150712 Q57634 Q19831445 Q22368 Q174662 Q65917 Q2628 Q19831449
(c(Q15617994)|c(Q1048835),P35,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q735387
relation P35
type Q15617994
type Q1048835
[ANSWERS] are the heads of state of less number of administrative territories and political territories than William McKell
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?h WHERE { VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?k rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P35 resource:Q735387 . { { ?e rdf:type ontology:Q15617994 } UNION { ?e rdf:type ontology:Q1048835 } } } } . FILTER ( ?s < ?n ) }
Thomas Currie Patrick Hillery Jonathan Lambert Nicola Mancino R. Venkataraman John Woolley Kaarlo Juho Ståhlberg Eddie Fenech Adami Robert Ben Madison László Sólyom Paul Delprat Tokugawa Ieyasu Edvard Beneš V. V. Giri Jefferson Davis Ferdinand I of Bulgaria Guido de Marco Raul Khadjimba Jean-Claude Duvalier Gustáv Husák Mehbooba Mufti Chennamaneni Vidyasagar Rao Douglas Hyde Carlo I Bertoleoni Tomáš Garrigue Masaryk Paolo I Bertoleoni Giuseppe Bertoleoni Yusof bin Ishak Jérôme Bonaparte Vít Jedlička Ugo Mifsud Bonnici Ranasinghe Premadasa Ahmad bin Yahya Tony Tan Keng Yam Umberto II of Italy Bhumibol Adulyadej Umberto I of Italy Ma Ying-jeou Mary Robinson Bronisław Komorowski Jam Nizamuddin II Grand Duke Michael Alexandrovich of Russia Pietro Grasso Willi Stoph Carlo II Bertoleoni Urho Kekkonen Hosni Mubarak Carl Gustaf Emil Mannerheim Khieu Samphan Vittorio Emanuele III Nitish Kumar Arnulf of Carinthia Zail Singh Paddy Roy Bates Jakaya Kikwete Lydia Emerencia Stefan Dragutin Maria I of Portugal Orélie-Antoine de Tounens Prince Karl Emich of Leiningen Andrey Vorobyov Jam Feruzudin Friedrich Ebert Karl Dönitz Archduke John of Austria King Louis I of Talossa Barack Obama Albert II Atifete Jahjaga George Abela Charles Albert of Sardinia Louis the Child Giovanni Spadolini Philip III of Spain Abu Bakr K. R. Narayanan Mohamed Morsi Wilhelm II Yevgeny Shevchuk Cesare Merzagora N. Chandrababu Naidu Umar ibn Al-Khattāb Manfred Gerlach Egon Krenz Erich Honecker Alī ibn Abī Ṭālib Tarja Halonen Sardar Muhammad Yaqoob Khan Yahya Muhammad Hamid ed-Din Mikhail Gorbachev Peter II of Yugoslavia Eric Bloodaxe Neelam Sanjiva Reddy Emil Hácha Leonard Petrosyan Gojong of the Korean Empire Friedrich III of Germany Oswiu of Northumbria Éamon de Valera Adly Mansour Frederick III, Elector of Saxony Norodom Sihanouk Yuan Shikai William Gopallawa Lord Mountbatten Sabine Bergmann-Pohl Takakazu Ishii Robert Kocharyan Jam Unar Georgette Bertin-Pourchet Gabrielle Pourchet Georges Pourchet Conrad I of Germany Wee Kim Wee Petar Stoyanov Tonino Bertoleoni Seán T. O'Kelly Antonín Novotný Ismail Shammout Louis the German Tamim bin Hamad Al Thani S. R. Nathan Victor Emmanuel II of Savoy Aleksandr Zakharchenko Amintore Fanfani François Duvalier Antonín Zápotocký Stephen Vladislav II of Syrmia Niels Vermeersch Joseph Bonaparte Henry I the Fowler Alexander Ankvab John Charlton Rudge Ihor Plotnytskiy Arkadi Ghukasyan Hamad bin Khalifa Al Thani Ludvík Svoboda Paul von Hindenburg Sarvepalli Radhakrishnan Shankar Dayal Sharma Boris III of Bulgaria Francis Uthman ibn Affan Otto I the Great Sunjong of the Korean Empire Michael Bates Kalvakuntla Chandrashekar Klement Gottwald Bako Sahakyan Ahmed Mahamoud Silanyo Olav V of Norway Adolf Hitler Tsai Ing-wen Tokugawa Hidetada Konijeti Rosaiah Francis I of Austria Georgi Parvanov Wilhelm I of Germany Charles the Fat Hashim Thaçi Mariangela Bertoleoni Chen Shui-bian Mary McAleese Wilhelm Pieck Walter Ulbricht Paolo II Bertoleoni
Adolf Hitler, Barack Obama and Alī ibn Abī Ṭālib are the heads of state of less number of administrative territories and political territories than William McKell
Adolf Hitler Barack Obama Alī ibn Abī Ṭālib
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity William McKell
relation head of state
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?h WHERE { VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:head_of_state resource:William_McKell . { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?e rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?s < ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q14362
P35
Q502895 Q15617994 Q1048835
USER
And what about Chun Doo-hwan?
(c(Q15617994)|c(Q1048835),P35,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q14362
relation P35
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?t WHERE { VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?h rdf:type ?d } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P35 resource:Q14362 . { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?q < ?i ) }
Chun Doo-hwan
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Chun Doo-hwan
relation head of state
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?t WHERE { VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?h rdf:type ?d } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:head_of_state resource:Chun_Doo-hwan . { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?q < ?i ) }
[]
common name designation for an administrative territorial entity political territorial entity
Q352 Q76 Q39619
SYSTEM
Adolf Hitler, Barack Obama, Alī ibn Abī Ṭālib
Q19830768 Q310994 Q19830761 Q1428924 Q297950 Q19464383 Q214029 Q152511 Q19830715 Q152335 Q16105901 Q171977 Q152274 Q312557 Q162269 Q151667 Q167724 Q1359023 Q310775 Q157651 Q6809265 Q13631996 Q237951 Q19831439 Q78492 Q19831437 Q19831432 Q259331 Q151087 Q19810371 Q167699 Q472323 Q400961 Q38987 Q187149 Q855252 Q153688 Q19216 Q188214 Q42939 Q16849387 Q154444 Q2503364 Q2610 Q19831452 Q179858 Q34105 Q152306 Q379203 Q150642 Q122304 Q154936 Q334851 Q555531 Q57488 Q6707612 Q290786 Q773874 Q886786 Q7244117 Q502185 Q6127060 Q2646 Q76437 Q93427 Q19830746 Q76 Q3910 Q57509 Q57502 Q181261 Q157099 Q332709 Q34464 Q334923 Q235454 Q4631 Q2677 Q188409 Q562209 Q3518013 Q8467 Q2601 Q2602 Q2607 Q39619 Q29213 Q69569 Q163945 Q30487 Q223183 Q213791 Q336913 Q156502 Q511888 Q257425 Q58600 Q468847 Q173347 Q13593432 Q77233 Q160318 Q210329 Q205993 Q157068 Q57232 Q1455923 Q613051 Q6127112 Q19831185 Q19831184 Q19831183 Q157121 Q399998 Q81215 Q19831457 Q327203 Q156494 Q1982245 Q152463 Q1855372 Q212188 Q168691 Q17488307 Q273228 Q187697 Q371854 Q661663 Q19861344 Q7726 Q150620 Q313355 Q6225811 Q17582456 Q541507 Q57360 Q310000 Q2667 Q156349 Q332157 Q159585 Q450675 Q37731 Q43915 Q334111 Q19628885 Q33168 Q296054 Q360462 Q380187 Q154912 Q352 Q233984 Q314464 Q1898405 Q130834 Q57261 Q150652 Q150712 Q57634 Q19831445 Q22368 Q174662 Q65917 Q2628 Q19831449
(c(Q15617994)|c(Q1048835),P35,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q14362
relation P35
type Q15617994
type Q1048835
[ANSWERS]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?t WHERE { VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?h rdf:type ?d } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P35 resource:Q14362 . { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?q < ?i ) }
Thomas Currie Patrick Hillery Jonathan Lambert Nicola Mancino R. Venkataraman John Woolley Kaarlo Juho Ståhlberg Eddie Fenech Adami Robert Ben Madison László Sólyom Paul Delprat Tokugawa Ieyasu Edvard Beneš V. V. Giri Jefferson Davis Ferdinand I of Bulgaria Guido de Marco Raul Khadjimba Jean-Claude Duvalier Gustáv Husák Mehbooba Mufti Chennamaneni Vidyasagar Rao Douglas Hyde Carlo I Bertoleoni Tomáš Garrigue Masaryk Paolo I Bertoleoni Giuseppe Bertoleoni Yusof bin Ishak Jérôme Bonaparte Vít Jedlička Ugo Mifsud Bonnici Ranasinghe Premadasa Ahmad bin Yahya Tony Tan Keng Yam Umberto II of Italy Bhumibol Adulyadej Umberto I of Italy Ma Ying-jeou Mary Robinson Bronisław Komorowski Jam Nizamuddin II Grand Duke Michael Alexandrovich of Russia Pietro Grasso Willi Stoph Carlo II Bertoleoni Urho Kekkonen Hosni Mubarak Carl Gustaf Emil Mannerheim Khieu Samphan Vittorio Emanuele III Nitish Kumar Arnulf of Carinthia Zail Singh Paddy Roy Bates Jakaya Kikwete Lydia Emerencia Stefan Dragutin Maria I of Portugal Orélie-Antoine de Tounens Prince Karl Emich of Leiningen Andrey Vorobyov Jam Feruzudin Friedrich Ebert Karl Dönitz Archduke John of Austria King Louis I of Talossa Barack Obama Albert II Atifete Jahjaga George Abela Charles Albert of Sardinia Louis the Child Giovanni Spadolini Philip III of Spain Abu Bakr K. R. Narayanan Mohamed Morsi Wilhelm II Yevgeny Shevchuk Cesare Merzagora N. Chandrababu Naidu Umar ibn Al-Khattāb Manfred Gerlach Egon Krenz Erich Honecker Alī ibn Abī Ṭālib Tarja Halonen Sardar Muhammad Yaqoob Khan Yahya Muhammad Hamid ed-Din Mikhail Gorbachev Peter II of Yugoslavia Eric Bloodaxe Neelam Sanjiva Reddy Emil Hácha Leonard Petrosyan Gojong of the Korean Empire Friedrich III of Germany Oswiu of Northumbria Éamon de Valera Adly Mansour Frederick III, Elector of Saxony Norodom Sihanouk Yuan Shikai William Gopallawa Lord Mountbatten Sabine Bergmann-Pohl Takakazu Ishii Robert Kocharyan Jam Unar Georgette Bertin-Pourchet Gabrielle Pourchet Georges Pourchet Conrad I of Germany Wee Kim Wee Petar Stoyanov Tonino Bertoleoni Seán T. O'Kelly Antonín Novotný Ismail Shammout Louis the German Tamim bin Hamad Al Thani S. R. Nathan Victor Emmanuel II of Savoy Aleksandr Zakharchenko Amintore Fanfani François Duvalier Antonín Zápotocký Stephen Vladislav II of Syrmia Niels Vermeersch Joseph Bonaparte Henry I the Fowler Alexander Ankvab John Charlton Rudge Ihor Plotnytskiy Arkadi Ghukasyan Hamad bin Khalifa Al Thani Ludvík Svoboda Paul von Hindenburg Sarvepalli Radhakrishnan Shankar Dayal Sharma Boris III of Bulgaria Francis Uthman ibn Affan Otto I the Great Sunjong of the Korean Empire Michael Bates Kalvakuntla Chandrashekar Klement Gottwald Bako Sahakyan Ahmed Mahamoud Silanyo Olav V of Norway Adolf Hitler Tsai Ing-wen Tokugawa Hidetada Konijeti Rosaiah Francis I of Austria Georgi Parvanov Wilhelm I of Germany Charles the Fat Hashim Thaçi Mariangela Bertoleoni Chen Shui-bian Mary McAleese Wilhelm Pieck Walter Ulbricht Paolo II Bertoleoni
Adolf Hitler Barack Obama Alī ibn Abī Ṭālib
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Chun Doo-hwan
relation head of state
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?t WHERE { VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?h rdf:type ?d } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:head_of_state resource:Chun_Doo-hwan . { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?q < ?i ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13562232 Q78874
P19 P937
Q56061
USER
Which administrative territories were Richard Oswald born at or are the locations where Pat Fleming worked ?
OR((Q78874,P19,c(Q56061)), (Q13562232,P937,c(Q56061)))
action filter_type
action union
action find
entity Q78874
relation P19
action find
entity Q13562232
relation P937
type Q56061
{'OR': [['Q78874', 'P19', {'concept': 'Q56061'}], ['Q13562232', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q13562232 property:P937 ?s } UNION { resource:Q78874 property:P19 ?s } } . ?s rdf:type ontology:Q56061 }
Pat Fleming Richard Oswald
action filter_type
action union
action find
entity Richard Oswald
relation place of birth
action find
entity Pat Fleming
relation work location
type administrative territorial entity
{'OR': [['Richard Oswald', 'place of birth', {'concept': 'administrative territorial entity'}], ['Pat Fleming', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Pat_Fleming property:work_location ?s } UNION { resource:Richard_Oswald property:place_of_birth ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741 Q16556
SYSTEM
Vienna, Phoenix
Q1741 Q16556
OR((Q78874,P19,c(Q56061)), (Q13562232,P937,c(Q56061)))
action filter_type
action union
action find
entity Q78874
relation P19
action find
entity Q13562232
relation P937
type Q56061
Richard Oswald were born at or are the locations where Pat Fleming worked in [ANSWERS]
{'OR': [['Q78874', 'P19', {'concept': 'Q56061'}], ['Q13562232', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q13562232 property:P937 ?s } UNION { resource:Q78874 property:P19 ?s } } . ?s rdf:type ontology:Q56061 }
Vienna Phoenix
Richard Oswald were born at or are the locations where Pat Fleming worked in Vienna and Phoenix
Vienna Phoenix
action filter_type
action union
action find
entity Richard Oswald
relation place of birth
action find
entity Pat Fleming
relation work location
type administrative territorial entity
{'OR': [['Richard Oswald', 'place of birth', {'concept': 'administrative territorial entity'}], ['Pat Fleming', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Pat_Fleming property:work_location ?s } UNION { resource:Richard_Oswald property:place_of_birth ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1741 Q16556
P159
Q874405
USER
Which social groups have headquarters located at those administrative territories ?
(c(Q874405),P159,Q1741) (c(Q874405),P159,Q16556)
action filter_type
action find_reverse
entity prev_answer
relation P159
type Q874405
[{'concept': 'Q874405'}, 'P159', 'Q1741'] [{'concept': 'Q874405'}, 'P159', 'Q16556']
SELECT DISTINCT ?f WHERE { ?f property:P159 ?d . ?f rdf:type ontology:Q874405 . VALUES ( ?d ) { ( resource:Q1741 ) ( resource:Q16556 ) } }
Vienna Phoenix
action filter_type
action find_reverse
entity prev_answer
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Vienna'] [{'concept': 'social group'}, 'headquarters location', 'Phoenix']
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location ?d . ?f rdf:type ontology:social_group . VALUES ( ?d ) { ( resource:Vienna ) ( resource:Phoenix ) } }
[]
social group
Q1310001 Q41984 Q6324948
SYSTEM
Erste Group, International Atomic Energy Agency, KAICIID Dialogue Centre
Q5570947 Q2116351 Q873136 Q698882 Q306489 Q41984 Q24031604 Q6324948 Q5413211 Q306519 Q7392076 Q1563734 Q26664262 Q22678099 Q1310001 Q1667050 Q383273 Q1954729 Q6053539 Q1603538 Q2115990 Q29774 Q5600717 Q21015740 Q4791243 Q12021016 Q4791330 Q6762591
(c(Q874405),P159,Q1741) (c(Q874405),P159,Q16556)
action filter_type
action find_reverse
entity prev_answer
relation P159
type Q874405
[ANSWERS] have headquarters located at those administrative territories
[{'concept': 'Q874405'}, 'P159', 'Q1741'] [{'concept': 'Q874405'}, 'P159', 'Q16556']
SELECT DISTINCT ?f WHERE { ?f property:P159 ?d . ?f rdf:type ontology:Q874405 . VALUES ( ?d ) { ( resource:Q1741 ) ( resource:Q16556 ) } }
Globcal International Public Netbase Light for the World Lighthouse Wien Austrian Tourist Club International Atomic Energy Agency Taipei Economic and Cultural Office, Vienna, Austria KAICIID Dialogue Centre European Society of Human Genetics Österreichischer Versuchssenderverband SONNE – International HIV-mobil International Society for Chilean Music (SIMUC) One world foundation Erste Group International Association of Water Supply Companies in the Danube River Catchment Area Austrian Science Fund Museum in progress International Solid Waste Association Call to Disobedience Psychologische Mittwochs-Gesellschaft International Organization of Supreme Audit Institutions Greater Phoenix Chamber of Commerce I Have A Name Project Arizona Association of Counties A Foreign Affair Arizona Interscholastic Association Maricopa Live Steamers
Erste Group, International Atomic Energy Agency and KAICIID Dialogue Centre have headquarters located at those administrative territories
Erste Group International Atomic Energy Agency KAICIID Dialogue Centre
action filter_type
action find_reverse
entity prev_answer
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Vienna'] [{'concept': 'social group'}, 'headquarters location', 'Phoenix']
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location ?d . ?f rdf:type ontology:social_group . VALUES ( ?d ) { ( resource:Vienna ) ( resource:Phoenix ) } }
[]