Simple Question (Direct)
Simple Question
Q2862451
P463
Q43229
USER
Which organization was Izaäk Hendrik Gosses a member of ?
(Q2862451,P463,c(Q43229))
action filter_type
action find
entity Q2862451
relation P463
type Q43229
['Q2862451', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?u WHERE { resource:Q2862451 property:P463 ?u . ?u rdf:type ontology:Q43229 }
Izaäk Hendrik Gosses
action filter_type
action find
entity Izaäk Hendrik Gosses
relation member of
type organization
['Izaäk Hendrik Gosses', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?u WHERE { resource:Izaäk_Hendrik_Gosses property:member_of ?u . ?u rdf:type ontology:organization }
[]
organization
Q253439
SYSTEM
Royal Netherlands Academy of Arts and Sciences
Q253439
(Q2862451,P463,c(Q43229))
action filter_type
action find
entity Q2862451
relation P463
type Q43229
[ANSWER] was Izaäk Hendrik Gosses a member of
['Q2862451', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?u WHERE { resource:Q2862451 property:P463 ?u . ?u rdf:type ontology:Q43229 }
Royal Netherlands Academy of Arts and Sciences
Royal Netherlands Academy of Arts and Sciences was Izaäk Hendrik Gosses a member of
Royal Netherlands Academy of Arts and Sciences
action filter_type
action find
entity Izaäk Hendrik Gosses
relation member of
type organization
['Izaäk Hendrik Gosses', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?u WHERE { resource:Izaäk_Hendrik_Gosses property:member_of ?u . ?u rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2862451
P21
Q290
USER
What is the sex of Izaäk Hendrik Gosses ?
(Q2862451,P21,c(Q290))
action filter_type
action find
entity Q2862451
relation P21
type Q290
['Q2862451', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q2862451 property:P21 ?b . ?b rdf:type ontology:Q290 }
Izaäk Hendrik Gosses
action filter_type
action find
entity Izaäk Hendrik Gosses
relation gender
type sex
['Izaäk Hendrik Gosses', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Izaäk_Hendrik_Gosses property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2862451,P21,c(Q290))
action filter_type
action find
entity Q2862451
relation P21
type Q290
The sex of Izaäk Hendrik Gosses is the [ANSWER]
['Q2862451', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q2862451 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of Izaäk Hendrik Gosses is the male
male
action filter_type
action find
entity Izaäk Hendrik Gosses
relation gender
type sex
['Izaäk Hendrik Gosses', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Izaäk_Hendrik_Gosses property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7558744
Q290
USER
And what about Solomon Seruya?
(Q7558744,P21,c(Q290))
action filter_type
action find
entity Q7558744
relation P21
type Q290
['Q7558744', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q7558744 property:P21 ?a . ?a rdf:type ontology:Q290 }
Solomon Seruya
action filter_type
action find
entity Solomon Seruya
relation gender
type sex
['Solomon Seruya', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Solomon_Seruya property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7558744,P21,c(Q290))
action filter_type
action find
entity Q7558744
relation P21
type Q290
[ANSWER]
['Q7558744', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q7558744 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Solomon Seruya
relation gender
type sex
['Solomon Seruya', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Solomon_Seruya property:gender ?a . ?a rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q606298 Q7558744
P27
Q15617994
USER
Which administrative territories do Solomon Seruya or Jurate Rosales belong to ?
OR((Q7558744,P27,c(Q15617994)), (Q606298,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7558744
relation P27
action find
entity Q606298
relation P27
type Q15617994
{'OR': [['Q7558744', 'P27', {'concept': 'Q15617994'}], ['Q606298', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { ?i property:P27 ?m . VALUES ( ?i ) { ( resource:Q7558744 ) ( resource:Q606298 ) } } }
Jurate Rosales Solomon Seruya
action filter_type
action union
action find
entity Solomon Seruya
relation country of citizenship
action find
entity Jurate Rosales
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Solomon Seruya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jurate Rosales', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?i property:country_of_citizenship ?m . VALUES ( ?i ) { ( resource:Solomon_Seruya ) ( resource:Jurate_Rosales ) } } }
[]
designation for an administrative territorial entity
Q717 Q801
SYSTEM
Venezuela, Israel
Q717 Q801
OR((Q7558744,P27,c(Q15617994)), (Q606298,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7558744
relation P27
action find
entity Q606298
relation P27
type Q15617994
Solomon Seruya or Jurate Rosales belong to [ANSWERS]
{'OR': [['Q7558744', 'P27', {'concept': 'Q15617994'}], ['Q606298', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { ?i property:P27 ?m . VALUES ( ?i ) { ( resource:Q7558744 ) ( resource:Q606298 ) } } }
Venezuela Israel
Solomon Seruya or Jurate Rosales belong to Venezuela and Israel
Venezuela Israel
action filter_type
action union
action find
entity Solomon Seruya
relation country of citizenship
action find
entity Jurate Rosales
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Solomon Seruya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jurate Rosales', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?i property:country_of_citizenship ?m . VALUES ( ?i ) { ( resource:Solomon_Seruya ) ( resource:Jurate_Rosales ) } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q717 Q801
P35
Q502895
USER
Which people are the heads of state of Venezuela and Israel ?
(Q717,P35,c(Q502895)) (Q801,P35,c(Q502895))
action union
action filter_type
action find
entity Q717
relation P35
type Q502895
action filter_type
action find
entity Q801
relation P35
type Q502895
['Q717', 'P35', {'concept': 'Q502895'}] ['Q801', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { resource:Q717 property:P35 ?k . ?k rdf:type ontology:Q502895 } UNION { resource:Q801 property:P35 ?k . ?k rdf:type ontology:Q502895 } }
Venezuela Israel
action union
action filter_type
action find
entity Venezuela
relation head of state
type common name
action filter_type
action find
entity Israel
relation head of state
type common name
['Venezuela', 'head of state', {'concept': 'common name'}] ['Israel', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { resource:Venezuela property:head_of_state ?k . ?k rdf:type ontology:common_name } UNION { resource:Israel property:head_of_state ?k . ?k rdf:type ontology:common_name } }
[]
common name
Q57410 Q295141 Q110330
SYSTEM
Shimon Peres, Chaim Herzog, Ephraim Katzir
Q58132 Q128911 Q295141 Q299100 Q110330 Q455854 Q57410 Q311583 Q128894 Q181832 Q172183
(Q717,P35,c(Q502895)) (Q801,P35,c(Q502895))
action union
action filter_type
action find
entity Q717
relation P35
type Q502895
action filter_type
action find
entity Q801
relation P35
type Q502895
[ANSWERS] are the heads of state of Venezuela and Israel
['Q717', 'P35', {'concept': 'Q502895'}] ['Q801', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { resource:Q717 property:P35 ?k . ?k rdf:type ontology:Q502895 } UNION { resource:Q801 property:P35 ?k . ?k rdf:type ontology:Q502895 } }
Nicolás Maduro Ezer Weizman Chaim Herzog Zalman Shazar Ephraim Katzir Reuven Rivlin Shimon Peres Yitzhak Navon Yitzhak Ben-Zvi Moshe Katsav Chaim Weizmann
Shimon Peres, Chaim Herzog and Ephraim Katzir are the heads of state of Venezuela and Israel
Shimon Peres Chaim Herzog Ephraim Katzir
action union
action filter_type
action find
entity Venezuela
relation head of state
type common name
action filter_type
action find
entity Israel
relation head of state
type common name
['Venezuela', 'head of state', {'concept': 'common name'}] ['Israel', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { resource:Venezuela property:head_of_state ?k . ?k rdf:type ontology:common_name } UNION { resource:Israel property:head_of_state ?k . ?k rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q57410 Q295141 Q110330
P106
Q12737077
USER
What are the professions of those people ?
(Q57410,P106,c(Q12737077)) (Q295141,P106,c(Q12737077)) (Q110330,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q57410', 'P106', {'concept': 'Q12737077'}] ['Q295141', 'P106', {'concept': 'Q12737077'}] ['Q110330', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . VALUES ( ?l ) { ( resource:Q58132 ) ( resource:Q128911 ) ( resource:Q295141 ) } . ?l property:P106 ?h }
Shimon Peres Chaim Herzog Ephraim Katzir
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Shimon Peres', 'occupation', {'concept': 'occupation'}] ['Chaim Herzog', 'occupation', {'concept': 'occupation'}] ['Ephraim Katzir', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . VALUES ( ?l ) { ( resource:Nicolás_Maduro ) ( resource:Ezer_Weizman ) ( resource:Chaim_Herzog ) } . ?l property:occupation ?h }
[]
occupation
Q1622272 Q193391 Q82955
SYSTEM
university teacher, diplomat, politician
Q193391 Q82955 Q193391 Q82955 Q189290 Q1622272 Q14906342
(Q57410,P106,c(Q12737077)) (Q295141,P106,c(Q12737077)) (Q110330,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
The professions of those people are [ANSWERS]
['Q57410', 'P106', {'concept': 'Q12737077'}] ['Q295141', 'P106', {'concept': 'Q12737077'}] ['Q110330', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . VALUES ( ?l ) { ( resource:Q58132 ) ( resource:Q128911 ) ( resource:Q295141 ) } . ?l property:P106 ?h }
diplomat politician diplomat politician officer university teacher biophysicist
The professions of those people are university teacher, diplomat and politician
university teacher diplomat politician
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Shimon Peres', 'occupation', {'concept': 'occupation'}] ['Chaim Herzog', 'occupation', {'concept': 'occupation'}] ['Ephraim Katzir', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . VALUES ( ?l ) { ( resource:Nicolás_Maduro ) ( resource:Ezer_Weizman ) ( resource:Chaim_Herzog ) } . ?l property:occupation ?h }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1622272 Q193391 Q82955
P39
Q502895
USER
Which people held the position of university teacher, diplomat and politician ?
(c(Q502895),P39,Q1622272) (c(Q502895),P39,Q193391) (c(Q502895),P39,Q82955)
action union
action filter_type
action find_reverse
entity Q1622272
relation P39
type Q502895
action filter_type
action find_reverse
entity Q193391
relation P39
type Q502895
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1622272'] [{'concept': 'Q502895'}, 'P39', 'Q193391'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?a WHERE { ?a property:P39 ?g . VALUES ( ?g ) { ( resource:Q1622272 ) ( resource:Q193391 ) } }
university teacher diplomat politician
action union
action filter_type
action find_reverse
entity university teacher
relation position held
type common name
action filter_type
action find_reverse
entity diplomat
relation position held
type common name
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'university teacher'] [{'concept': 'common name'}, 'position held', 'diplomat'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?a WHERE { ?a property:position_held ?g . VALUES ( ?g ) { ( resource:university_teacher ) ( resource:diplomat ) } }
[]
common name
Q164384 Q164384 Q6294
SYSTEM
Hillary Clinton for 3rd, Theodore von Kármán for 1st, 2nd
Q27078052 Q19606594 Q22443703 Q3118583 Q2243667 Q16024023 Q3084776 Q3084776 Q16638850 Q15729620 Q3736628 Q366020 Q729418 Q3386998 Q20089632 Q20089632 Q2288137 Q15068663 Q164384 Q164384 Q18020726 Q20006978 Q18391 Q2848716 Q16078961 Q20819088 Q1731986 Q12265676 Q21795358 Q3169670 Q1511883 Q20828248 Q6171180 Q376210 Q3123954 Q19345746 Q16582679 Q8962412 Q20127366 Q2572989 Q1700189 Q15912761 Q178344 Q12354531 Q26818523 Q3186122 Q1731321 Q506805 Q1345191 Q3110673 Q3009105 Q115448 Q21708173 Q3169116 Q1294512 Q1388660 Q374024 Q18577704 Q3385948 Q26037404 Q25932529 Q454594 Q84714 Q4067424 Q3172544 Q5287936 Q16073166 Q17497103 Q2894300 Q3144855 Q115630 Q2870093 Q2067100 Q2067100 Q101235 Q15731513 Q14517540 Q531788 Q380814 Q1932828 Q8354697 Q2542162 Q20806967 Q16545583 Q20204919 Q16698998 Q74295 Q5815940 Q15089196 Q16260960 Q6294 Q15054444 Q1151101 Q20204913 Q20819474 Q87337 Q18744759 Q13390045 Q1708489 Q1776797 Q936760 Q16011274 Q25836733 Q11443689 Q11443689 Q8006158 Q1363028 Q13016261 Q10346107 Q3304221 Q336501 Q1728780 Q824064 Q17496977 Q17496977 Q2899558 Q481538 Q20723514 Q3384219 Q237821 Q263725 Q263725 Q27064349 Q1598320 Q2182265 Q6232311 Q3387352 Q24952357 Q22977279 Q823220 Q12350223 Q1351160 Q15406938 Q3106418 Q96922 Q770810 Q20054988 Q5622207 Q18744694 Q20012 Q2043597 Q22977147 Q3295727 Q21064904 Q19629707 Q3310179 Q178577 Q12906 Q20041837 Q19943834 Q5865616 Q3434789 Q20829823 Q2387288 Q27070471 Q333372 Q20821084 Q17119902 Q699131 Q19828328 Q16912378 Q26215129
(c(Q502895),P39,Q1622272) (c(Q502895),P39,Q193391) (c(Q502895),P39,Q82955)
action union
action filter_type
action find_reverse
entity Q1622272
relation P39
type Q502895
action filter_type
action find_reverse
entity Q193391
relation P39
type Q502895
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q1622272'] [{'concept': 'Q502895'}, 'P39', 'Q193391'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?a WHERE { ?a property:P39 ?g . VALUES ( ?g ) { ( resource:Q1622272 ) ( resource:Q193391 ) } }
Agnieszka Grudzińska Jacques Bahi Liliane Mottu-Weber Grégory Michel Johannes van den Driesche Luc-Francis Genicot François Gros François Gros Geoffrey Pleyers Conrad Goclenius Robert Rosen Adolphus Vorstius Hussein Chalayan Pierre Simard Jacques Percebois Jacques Percebois Simone Mayer Hans-Dietrich Quednau Theodore von Kármán Theodore von Kármán Hartmann Jacobi Octav Botez Elie Wiesel André Tricot Jessica Wilson Ángel Rubio Bocanegra Karl Kopp Pedro Ibarra Güell Jean-Pierre Corbeau Jean-Pierre Poulain Gerhard Kegel Bernard Bouillon Jean Mercier Adrianus Turnebus Gérard Ferreyrolles Hans-Heinrich Raspe José Arias Ramos Francisco Javier Fernández Conde Eirick Prairat Wilhelm Hallermann John Anderson Nicolas-Éloi Lemaire Luis Walter Alvarez Richard Osborne Raphaële Andrault Josué de la Place Karl Grouven Andrew Ranicki Philippe Van Parijs Jeanne-Marie Santraud Cyrille Barrette Daniel Bovet Jean-Luc Le Cam Jean-Pierre Centi Karl Vohwinkel Rudolf Strempel Nikolai Luzin Rainer Maria Kiesow Pierre Lescanne Götz Martius Julius Pierstorff Sixtinus Amama Karl Karmarsch Afinogen Antonovich Jean Hladik Dodie Bellamy Margit Eschenbach Rolland Viau Miguel de Portilla y Esquivel Hélène Saule-Sorbé Peter Bieri Attie Duval Adrianus Barlandus Adrianus Barlandus Anton Sterbling Santiago Segura Munguía Jacques Maurice Pieter Pauw Aelius Everardus Vorstius Mihailo Petrović Demófilo de Buen Lozano Valery Galtsov Anoi Castro Cordeiro César Manzanos Bilbao Alain Euzéby Vladimir Ivanovich Sobolev Hermann Stieve John Hughes Jacques de Groote Silke Bothfeld Hillary Clinton Ignat Florian Bociort Alfonso de Zamora Jacques Aben Luis Mercado Peter Skalicky Fabien Granjon Bruno Dürigen Paul Christiaan Flu Lucy Shapiro George Pruteanu Édouard Galletier Danis Bois Hiroshi Amano Hiroshi Amano William Burke-White Günter Imhäuser Bundhit Eua-apporn Patrick Charaudeau Milton Edward Harr Ilora Finlay, Baroness Finlay of Llandaff Max Dieckhoff Bernd Rohwer Michel Robert Michel Robert Bertrand Hauchecorne Viggo Fausböll Michel Chrysos Pierre Brunet Robert Fogel Janet Yellen Janet Yellen Corneille Bonaventure Bertram Heinrich Michaelis Roger Blanpain John F. Hughes Pierre Wertheimer Petrus Nannius Rudolf Stich Bernd-Dietrich Katthagen József Boros Nicholas Georgescu-Roegen Anne Staquet Gilles Noël Martin Haase Valerius Andreas Loïc Depecker Guy Deutscher Jean-Pierre Cometti Adolphe Quetelet Yevgeny Bokarev Rudolf Stich Martine Abdallah-Pretceille Friedrich Schmidtke Michel Raynal Michel Lenoble Norbert Wiener Helmar Frank Hideichirō Nakano Claude Lelièvre Francisco Enríquez de Villacorta Robert Chaudenson Roland Perez Alain Couret Antoine de La Faye Carolus Clusius Philippe Kaenel Lorentz Langberg Xiong Xianghui Antonio Caselli Alexandre Melnik Morteza Azari
Theodore von Kármán, Theodore von Kármán and Hillary Clinton held the position of university teacher, diplomat and politician
Theodore von Kármán Theodore von Kármán Hillary Clinton
action union
action filter_type
action find_reverse
entity university teacher
relation position held
type common name
action filter_type
action find_reverse
entity diplomat
relation position held
type common name
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'university teacher'] [{'concept': 'common name'}, 'position held', 'diplomat'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?a WHERE { ?a property:position_held ?g . VALUES ( ?g ) { ( resource:university_teacher ) ( resource:diplomat ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6294
P488
Q192350
USER
Which ministry does Hillary Clinton lead ?
(c(Q192350),P488,Q6294)
action filter_type
action find_reverse
entity Q6294
relation P488
type Q192350
[{'concept': 'Q192350'}, 'P488', 'Q6294']
SELECT DISTINCT ?q WHERE { ?q property:P488 resource:Q6294 . ?q rdf:type ontology:Q192350 }
Hillary Clinton
action filter_type
action find_reverse
entity Hillary Clinton
relation chairperson
type ministry
[{'concept': 'ministry'}, 'chairperson', 'Hillary Clinton']
SELECT DISTINCT ?q WHERE { ?q property:chairperson resource:Hillary_Clinton . ?q rdf:type ontology:ministry }
[]
ministry
Q789915
SYSTEM
United States Department of State
Q789915
(c(Q192350),P488,Q6294)
action filter_type
action find_reverse
entity Q6294
relation P488
type Q192350
Hillary Clinton leads the [ANSWER]
[{'concept': 'Q192350'}, 'P488', 'Q6294']
SELECT DISTINCT ?q WHERE { ?q property:P488 resource:Q6294 . ?q rdf:type ontology:Q192350 }
United States Department of State
Hillary Clinton leads the United States Department of State
United States Department of State
action filter_type
action find_reverse
entity Hillary Clinton
relation chairperson
type ministry
[{'concept': 'ministry'}, 'chairperson', 'Hillary Clinton']
SELECT DISTINCT ?q WHERE { ?q property:chairperson resource:Hillary_Clinton . ?q rdf:type ontology:ministry }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q789915
P361
Q12737077
USER
Which occupation is a portion of that ministry ?
(c(Q12737077),P361,Q789915)
action filter_type
action find_reverse
entity Q789915
relation P361
type Q12737077
[{'concept': 'Q12737077'}, 'P361', 'Q789915']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . ?f property:P361 resource:Q789915 }
United States Department of State
action filter_type
action find_reverse
entity United States Department of State
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'United States Department of State']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . ?f property:part_of resource:United_States_Department_of_State }
[]
occupation
Q7574546
SYSTEM
Special Envoy for Eurasian Energy
Q7574546
(c(Q12737077),P361,Q789915)
action filter_type
action find_reverse
entity Q789915
relation P361
type Q12737077
[ANSWER] is a portion of that ministry
[{'concept': 'Q12737077'}, 'P361', 'Q789915']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . ?f property:P361 resource:Q789915 }
Special Envoy for Eurasian Energy
Special Envoy for Eurasian Energy is a portion of that ministry
Special Envoy for Eurasian Energy
action filter_type
action find_reverse
entity United States Department of State
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'United States Department of State']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . ?f property:part_of resource:United_States_Department_of_State }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q57410
P112
Q4830453 Q874405
USER
How many business enterprises and social groups were started by Shimon Peres ?
(c(Q4830453),P112,Q57410) (c(Q874405),P112,Q57410)
action count
action union
action filter_type
action find_reverse
entity Q57410
relation P112
type Q4830453
action filter_type
action find_reverse
entity Q57410
relation P112
type Q874405
[{'concept': 'Q4830453'}, 'P112', 'Q57410'] [{'concept': 'Q874405'}, 'P112', 'Q57410']
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } . ?c rdf:type ?e }
Shimon Peres
action count
action union
action filter_type
action find_reverse
entity Shimon Peres
relation founder
type business enterprise
action filter_type
action find_reverse
entity Shimon Peres
relation founder
type social group
[{'concept': 'business enterprise'}, 'founder', 'Shimon Peres'] [{'concept': 'social group'}, 'founder', 'Shimon Peres']
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:business_enterprise ) ( ontology:social_group ) } . ?c rdf:type ?e }
[]
business enterprise social group
SYSTEM
1 business enterprises and 1 social groups
Q1070787 Q876017
(c(Q4830453),P112,Q57410) (c(Q874405),P112,Q57410)
action count
action union
action filter_type
action find_reverse
entity Q57410
relation P112
type Q4830453
action filter_type
action find_reverse
entity Q57410
relation P112
type Q874405
[ANSWER]
[{'concept': 'Q4830453'}, 'P112', 'Q57410'] [{'concept': 'Q874405'}, 'P112', 'Q57410']
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } . ?c rdf:type ?e }
Peres Center for Peace Israel Aerospace Industries
1 business enterprises and 1 social groups
action count
action union
action filter_type
action find_reverse
entity Shimon Peres
relation founder
type business enterprise
action filter_type
action find_reverse
entity Shimon Peres
relation founder
type social group
[{'concept': 'business enterprise'}, 'founder', 'Shimon Peres'] [{'concept': 'social group'}, 'founder', 'Shimon Peres']
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:business_enterprise ) ( ontology:social_group ) } . ?c rdf:type ?e }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q835003 Q57410
P27
Q15617994
USER
Which administrative territories do Shimon Peres or Nie Yuan belong to ?
OR((Q57410,P27,c(Q15617994)), (Q835003,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q57410
relation P27
action find
entity Q835003
relation P27
type Q15617994
{'OR': [['Q57410', 'P27', {'concept': 'Q15617994'}], ['Q835003', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { ?y property:P27 ?q . VALUES ( ?y ) { ( resource:Q57410 ) ( resource:Q835003 ) } } . ?q rdf:type ontology:Q15617994 }
Nie Yuan Shimon Peres
action filter_type
action union
action find
entity Shimon Peres
relation country of citizenship
action find
entity Nie Yuan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Shimon Peres', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Nie Yuan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { ?y property:country_of_citizenship ?q . VALUES ( ?y ) { ( resource:Shimon_Peres ) ( resource:Nie_Yuan ) } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q801
SYSTEM
People's Republic of China, Israel
Q148 Q801
OR((Q57410,P27,c(Q15617994)), (Q835003,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q57410
relation P27
action find
entity Q835003
relation P27
type Q15617994
Shimon Peres or Nie Yuan belong to the [ANSWERS]
{'OR': [['Q57410', 'P27', {'concept': 'Q15617994'}], ['Q835003', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { ?y property:P27 ?q . VALUES ( ?y ) { ( resource:Q57410 ) ( resource:Q835003 ) } } . ?q rdf:type ontology:Q15617994 }
People's Republic of China Israel
Shimon Peres or Nie Yuan belong to the People's Republic of China and Israel
People's Republic of China Israel
action filter_type
action union
action find
entity Shimon Peres
relation country of citizenship
action find
entity Nie Yuan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Shimon Peres', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Nie Yuan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { ?y property:country_of_citizenship ?q . VALUES ( ?y ) { ( resource:Shimon_Peres ) ( resource:Nie_Yuan ) } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]