Simple Question (Direct)
Simple Question
Q211701
P57
Q502895
USER
Which person served as the directed of When a Man Falls in the Forest ?
(Q211701,P57,c(Q502895))
action filter_type
action find
entity Q211701
relation P57
type Q502895
['Q211701', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q211701 property:P57 ?e . ?e rdf:type ontology:Q502895 }
When a Man Falls in the Forest
action filter_type
action find
entity When a Man Falls in the Forest
relation director
type common name
['When a Man Falls in the Forest', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:When_a_Man_Falls_in_the_Forest property:director ?e . ?e rdf:type ontology:common_name }
[]
common name
Q3453769
SYSTEM
Ryan Eslinger
Q3453769
(Q211701,P57,c(Q502895))
action filter_type
action find
entity Q211701
relation P57
type Q502895
[ANSWER] served as the directed of When a Man Falls in the Forest
['Q211701', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q211701 property:P57 ?e . ?e rdf:type ontology:Q502895 }
Ryan Eslinger
Ryan Eslinger served as the directed of When a Man Falls in the Forest
Ryan Eslinger
action filter_type
action find
entity When a Man Falls in the Forest
relation director
type common name
['When a Man Falls in the Forest', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:When_a_Man_Falls_in_the_Forest property:director ?e . ?e rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3207351 Q211701
P161
Q502895
USER
Which people starred in When a Man Falls in the Forest or China is Near ?
OR((Q211701,P161,c(Q502895)), (Q3207351,P161,c(Q502895)))
action filter_type
action union
action find
entity Q211701
relation P161
action find
entity Q3207351
relation P161
type Q502895
{'OR': [['Q211701', 'P161', {'concept': 'Q502895'}], ['Q3207351', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?s WHERE { { ?t property:P161 ?s . VALUES ( ?t ) { ( resource:Q211701 ) ( resource:Q3207351 ) } } . ?s rdf:type ontology:Q502895 }
China is Near When a Man Falls in the Forest
action filter_type
action union
action find
entity When a Man Falls in the Forest
relation cast member
action find
entity China is Near
relation cast member
type common name
{'OR': [['When a Man Falls in the Forest', 'cast member', {'concept': 'common name'}], ['China is Near', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?s WHERE { { ?t property:cast_member ?s . VALUES ( ?t ) { ( resource:When_a_Man_Falls_in_the_Forest ) ( resource:China_is_Near ) } } . ?s rdf:type ontology:common_name }
[]
common name
Q3827760 Q62975 Q3339658 Q1198697 Q3362634 Q3771912 Q310324 Q976234 Q3721203 Q3701837
SYSTEM
Some of them are Laura De Marchi, Sharon Stone, Nicholas Elia, Pruitt Taylor Vince, Paolo Graziosi, Glauco Mauri, Timothy Hutton, Claudio Cassinelli, Elda Tattoli, Daniela Surina
Q62975 Q3771912 Q3903071 Q310324 Q3362634 Q3701837 Q1198697 Q3721203 Q556039 Q976234 Q726128 Q3339658 Q3680253 Q3827760
OR((Q211701,P161,c(Q502895)), (Q3207351,P161,c(Q502895)))
action filter_type
action union
action find
entity Q211701
relation P161
action find
entity Q3207351
relation P161
type Q502895
[ANSWERS] starred in When a Man Falls in the Forest or China is Near
{'OR': [['Q211701', 'P161', {'concept': 'Q502895'}], ['Q3207351', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?s WHERE { { ?t property:P161 ?s . VALUES ( ?t ) { ( resource:Q211701 ) ( resource:Q3207351 ) } } . ?s rdf:type ontology:Q502895 }
Sharon Stone Glauco Mauri Pierluigi Aprà Timothy Hutton Paolo Graziosi Daniela Surina Pruitt Taylor Vince Elda Tattoli Alessandro Haber Claudio Cassinelli Dylan Baker Nicholas Elia Claudio Trionfi Laura De Marchi
Laura De Marchi, Sharon Stone, Nicholas Elia, Pruitt Taylor Vince, Paolo Graziosi, Glauco Mauri, Timothy Hutton, Claudio Cassinelli, Elda Tattoli and Daniela Surina starred in When a Man Falls in the Forest or China is Near
Laura De Marchi Sharon Stone Nicholas Elia Pruitt Taylor Vince Paolo Graziosi Glauco Mauri Timothy Hutton Claudio Cassinelli Elda Tattoli Daniela Surina
action filter_type
action union
action find
entity When a Man Falls in the Forest
relation cast member
action find
entity China is Near
relation cast member
type common name
{'OR': [['When a Man Falls in the Forest', 'cast member', {'concept': 'common name'}], ['China is Near', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?s WHERE { { ?t property:cast_member ?s . VALUES ( ?t ) { ( resource:When_a_Man_Falls_in_the_Forest ) ( resource:China_is_Near ) } } . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3362634 Q1342346
P161
Q838948
USER
How many works of art stars Paolo Graziosi or kohl as actor ?
(c(Q838948),P161,Q3362634) (c(Q838948),P161,Q1342346)
action count
action union
action filter_type
action find_reverse
entity Q3362634
relation P161
type Q838948
action filter_type
action find_reverse
entity Q1342346
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q3362634'] [{'concept': 'Q838948'}, 'P161', 'Q1342346']
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { VALUES ( ?h ) { ( resource:Q3362634 ) ( resource:Q1342346 ) } . ?s property:P161 ?h }
Paolo Graziosi kohl
action count
action union
action filter_type
action find_reverse
entity Paolo Graziosi
relation cast member
type work of art
action filter_type
action find_reverse
entity kohl
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Paolo Graziosi'] [{'concept': 'work of art'}, 'cast member', 'kohl']
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { VALUES ( ?h ) { ( resource:Paolo_Graziosi ) ( resource:kohl ) } . ?s property:cast_member ?h }
[]
work of art
SYSTEM
19
Q3886050 Q690525 Q80557 Q1223129 Q1593510 Q3823478 Q3416348 Q610700 Q6480103 Q17605404 Q115385 Q3429377 Q528601 Q3874891 Q3187253 Q3794492 Q3207351 Q641729 Q1056748
(c(Q838948),P161,Q3362634) (c(Q838948),P161,Q1342346)
action count
action union
action filter_type
action find_reverse
entity Q3362634
relation P161
type Q838948
action filter_type
action find_reverse
entity Q1342346
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q3362634'] [{'concept': 'Q838948'}, 'P161', 'Q1342346']
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { VALUES ( ?h ) { ( resource:Q3362634 ) ( resource:Q1342346 ) } . ?s property:P161 ?h }
Ormai è fatta! Louis, the Child King Illustrious Corpses Different from Whom? Una storia semplice La passione Galileo Galilei A Gangstergirl Lal Tuku Tuku Sadhaba Bahu Il giovane favoloso Il Divo Necropolis Giovanna's Father Fallen Heroes Merry Christmas... Happy New Year The Long Silence China is Near Cuore di mamma The Conviction
19
action count
action union
action filter_type
action find_reverse
entity Paolo Graziosi
relation cast member
type work of art
action filter_type
action find_reverse
entity kohl
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Paolo Graziosi'] [{'concept': 'work of art'}, 'cast member', 'kohl']
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { VALUES ( ?h ) { ( resource:Paolo_Graziosi ) ( resource:kohl ) } . ?s property:cast_member ?h }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P88
Q502895 Q2235308 Q44539
USER
Which people were the persons who commissioned max number of ship types and temples ?
(c(Q2235308)|c(Q44539),P88,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q2235308
action find_reverse_tuple_counts
relation P88
type Q502895
type Q44539
[[{'concept': 'Q2235308'}, {'concept': 'Q44539'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?q ) WHERE { { ?g property:P88 ?u . ?u rdf:type ontology:Q502895 . ?g rdf:type ontology:Q44539 } UNION { ?g property:P88 ?u . ?u rdf:type ontology:Q502895 . ?g rdf:type ontology:Q2235308 } } GROUP BY ?u } } . FILTER ( ?b = ?e ) . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?b ) WHERE { { ?h property:P88 ?x . ?x rdf:type ontology:Q502895 . ?h rdf:type ontology:Q44539 } UNION { ?h property:P88 ?x . ?x rdf:type ontology:Q502895 . ?h rdf:type ontology:Q2235308 } } GROUP BY ?x } }
action argmax
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type ship type
action find_reverse_tuple_counts
relation commissioned by
type common name
type temple
[[{'concept': 'ship type'}, {'concept': 'temple'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?q ) WHERE { { ?g property:commissioned_by ?u . ?u rdf:type ontology:common_name . ?g rdf:type ontology:temple } UNION { ?g property:commissioned_by ?u . ?u rdf:type ontology:common_name . ?g rdf:type ontology:ship_type } } GROUP BY ?u } } . FILTER ( ?b = ?e ) . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?b ) WHERE { { ?h property:commissioned_by ?x . ?x rdf:type ontology:common_name . ?h rdf:type ontology:temple } UNION { ?h property:commissioned_by ?x . ?x rdf:type ontology:common_name . ?h rdf:type ontology:ship_type } } GROUP BY ?x } }
[]
common name ship type temple
Q130834 Q19837 Q57180
SYSTEM
Francis I of Austria, Steve Jobs, Frederick William IV of Prussia
Q1419 Q158504 Q450160 Q3048511 Q6138693 Q19837 Q130834 Q57180
(c(Q2235308)|c(Q44539),P88,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q2235308
action find_reverse_tuple_counts
relation P88
type Q502895
type Q44539
[ANSWERS] were the persons who commissioned max number of ship types and temples
[[{'concept': 'Q2235308'}, {'concept': 'Q44539'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?q ) WHERE { { ?g property:P88 ?u . ?u rdf:type ontology:Q502895 . ?g rdf:type ontology:Q44539 } UNION { ?g property:P88 ?u . ?u rdf:type ontology:Q502895 . ?g rdf:type ontology:Q2235308 } } GROUP BY ?u } } . FILTER ( ?b = ?e ) . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?b ) WHERE { { ?h property:P88 ?x . ?x rdf:type ontology:Q502895 . ?h rdf:type ontology:Q44539 } UNION { ?h property:P88 ?x . ?x rdf:type ontology:Q502895 . ?h rdf:type ontology:Q2235308 } } GROUP BY ?x } }
Vespasian Clement of Ohrid Marjorie Merriweather Post Edward Francis Hutton James Mackay, 1st Earl of Inchcape Steve Jobs Francis I of Austria Frederick William IV of Prussia
Francis I of Austria, Steve Jobs and Frederick William IV of Prussia were the persons who commissioned max number of ship types and temples
Francis I of Austria Steve Jobs Frederick William IV of Prussia
action argmax
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type ship type
action find_reverse_tuple_counts
relation commissioned by
type common name
type temple
[[{'concept': 'ship type'}, {'concept': 'temple'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?q ) WHERE { { ?g property:commissioned_by ?u . ?u rdf:type ontology:common_name . ?g rdf:type ontology:temple } UNION { ?g property:commissioned_by ?u . ?u rdf:type ontology:common_name . ?g rdf:type ontology:ship_type } } GROUP BY ?u } } . FILTER ( ?b = ?e ) . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?b ) WHERE { { ?h property:commissioned_by ?x . ?x rdf:type ontology:common_name . ?h rdf:type ontology:temple } UNION { ?h property:commissioned_by ?x . ?x rdf:type ontology:common_name . ?h rdf:type ontology:ship_type } } GROUP BY ?x } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q130834 Q19837 Q57180
P7
Q502895
USER
Who have Francis I of Austria, Steve Jobs and Frederick William IV of Prussia as their sibling ?
(c(Q502895),P7,Q130834) (c(Q502895),P7,Q19837) (c(Q502895),P7,Q57180)
action union
action filter_type
action find_reverse
entity Q130834
relation P7
type Q502895
action filter_type
action find_reverse
entity Q57180
relation P7
type Q502895
action filter_type
action find_reverse
entity Q19837
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q130834'] [{'concept': 'Q502895'}, 'P7', 'Q19837'] [{'concept': 'Q502895'}, 'P7', 'Q57180']
SELECT DISTINCT ?m WHERE { VALUES ( ?z ) { ( resource:Q130834 ) ( resource:Q57180 ) } . ?m property:P7 ?z }
Francis I of Austria Steve Jobs Frederick William IV of Prussia
action union
action filter_type
action find_reverse
entity Francis I of Austria
relation brother
type common name
action filter_type
action find_reverse
entity Frederick William IV of Prussia
relation brother
type common name
action filter_type
action find_reverse
entity Steve Jobs
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Francis I of Austria'] [{'concept': 'common name'}, 'brother', 'Steve Jobs'] [{'concept': 'common name'}, 'brother', 'Frederick William IV of Prussia']
SELECT DISTINCT ?m WHERE { VALUES ( ?z ) { ( resource:Francis_I_of_Austria ) ( resource:Frederick_William_IV_of_Prussia ) } . ?m property:brother ?z }
[]
common name
Q84201 Q93427 Q319764
SYSTEM
Archduke Charles, Duke of Teschen, Archduke John of Austria, Archduke Joseph, Palatine of Hungary
Q1032317 Q84201 Q701087 Q3847098 Q309605 Q442756 Q319764 Q111975 Q93427 Q237955 Q93373 Q233728 Q595088 Q238331 Q51028 Q60607 Q442587 Q57207 Q186549 Q150652
(c(Q502895),P7,Q130834) (c(Q502895),P7,Q19837) (c(Q502895),P7,Q57180)
action union
action filter_type
action find_reverse
entity Q130834
relation P7
type Q502895
action filter_type
action find_reverse
entity Q57180
relation P7
type Q502895
action filter_type
action find_reverse
entity Q19837
relation P7
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P7', 'Q130834'] [{'concept': 'Q502895'}, 'P7', 'Q19837'] [{'concept': 'Q502895'}, 'P7', 'Q57180']
SELECT DISTINCT ?m WHERE { VALUES ( ?z ) { ( resource:Q130834 ) ( resource:Q57180 ) } . ?m property:P7 ?z }
Maria Anna d'Asburgo-Lorena Archduke Charles, Duke of Teschen Archduke Alexander Leopold of Austria Maria Amalia d'Asburgo-Lorena Ferdinand III, Grand Duke of Tuscany Archduke Rainer Joseph of Austria Archduke Joseph, Palatine of Hungary Archduke Louis of Austria Archduke John of Austria Maria Theresa of Austria Archduke Rudolf of Austria Archduchess Maria Clementina of Austria Archduke Anton Victor of Austria Mona Simpson Prince Albert of Prussia Princess Louise of Prussia Prince Charles of Prussia Alexandra Feodorovna Princess Alexandrine of Prussia Wilhelm I of Germany
Archduke Charles, Duke of Teschen, Archduke John of Austria and Archduke Joseph, Palatine of Hungary have Francis I of Austria, Steve Jobs and Frederick William IV of Prussia as their sibling
Archduke Charles, Duke of Teschen Archduke John of Austria Archduke Joseph, Palatine of Hungary
action union
action filter_type
action find_reverse
entity Francis I of Austria
relation brother
type common name
action filter_type
action find_reverse
entity Frederick William IV of Prussia
relation brother
type common name
action filter_type
action find_reverse
entity Steve Jobs
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Francis I of Austria'] [{'concept': 'common name'}, 'brother', 'Steve Jobs'] [{'concept': 'common name'}, 'brother', 'Frederick William IV of Prussia']
SELECT DISTINCT ?m WHERE { VALUES ( ?z ) { ( resource:Francis_I_of_Austria ) ( resource:Frederick_William_IV_of_Prussia ) } . ?m property:brother ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q84201
P39
Q82799
USER
What was the position for which that person was appointed ?
(Q84201,P39,c(Q82799))
action filter_type
action find
entity Q84201
relation P39
type Q82799
['Q84201', 'P39', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q84201 property:P39 ?q . ?q rdf:type ontology:Q82799 }
Archduke Charles, Duke of Teschen
action filter_type
action find
entity Archduke Charles, Duke of Teschen
relation position held
type name
['Archduke Charles, Duke of Teschen', 'position held', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Archduke_Charles,_Duke_of_Teschen property:position_held ?q . ?q rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q84201
SYSTEM
Did you mean Archduke Charles, Duke of Teschen ?
Q84201 Q93427 Q319764
(Q84201,P39,c(Q82799)) (Q93427,P39,c(Q82799)) (Q319764,P39,c(Q82799))
[ANSWER]
['Q84201', 'P39', {'concept': 'Q82799'}] ['Q93427', 'P39', {'concept': 'Q82799'}] ['Q319764', 'P39', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q84201 property:P39 ?q . ?q rdf:type ontology:Q82799 }
Archduke Charles, Duke of Teschen Archduke John of Austria Archduke Joseph, Palatine of Hungary
Did you mean Archduke Charles, Duke of Teschen ?
Archduke Charles, Duke of Teschen
['Archduke Charles, Duke of Teschen', 'position held', {'concept': 'name'}] ['Archduke John of Austria', 'position held', {'concept': 'name'}] ['Archduke Joseph, Palatine of Hungary', 'position held', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Archduke_Charles,_Duke_of_Teschen property:position_held ?q . ?q rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q84201,P39,c(Q82799))
['Q84201', 'P39', {'concept': 'Q82799'}]
['Archduke Charles, Duke of Teschen', 'position held', {'concept': 'name'}]
[]
Q10145967
SYSTEM
Grand Master of the Teutonic Knights
Q10145967
(Q84201,P39,c(Q82799))
action filter_type
action find
entity Q84201
relation P39
type Q82799
The [ANSWER]
['Q84201', 'P39', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q84201 property:P39 ?q . ?q rdf:type ontology:Q82799 }
Grand Master of the Teutonic Knights
The Grand Master of the Teutonic Knights
Grand Master of the Teutonic Knights
action filter_type
action find
entity Archduke Charles, Duke of Teschen
relation position held
type name
['Archduke Charles, Duke of Teschen', 'position held', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Archduke_Charles,_Duke_of_Teschen property:position_held ?q . ?q rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q10145967 Q1695456
P39
Q502895
USER
Was Johann Martin von Eyb appointed for the position of that name ?
(Q1695456,P39,Q10145967)
action is_in
entity Q1695456
action find
entity Q10145967
relation P39
['Q1695456', 'P39', 'Q10145967']
ASK WHERE { resource:Q10145967 property:P39 resource:Q1695456 }
Grand Master of the Teutonic Knights Johann Martin von Eyb
action is_in
entity Johann Martin von Eyb
action find
entity Grand Master of the Teutonic Knights
relation position held
['Johann Martin von Eyb', 'position held', 'Grand Master of the Teutonic Knights']
ASK WHERE { resource:Grand_Master_of_the_Teutonic_Knights property:position_held resource:Johann_Martin_von_Eyb }
[]
common name
SYSTEM
NO
(Q1695456,P39,Q10145967)
action is_in
entity Q1695456
action find
entity Q10145967
relation P39
[ANSWER]
['Q1695456', 'P39', 'Q10145967']
ASK WHERE { resource:Q10145967 property:P39 resource:Q1695456 }
No
action is_in
entity Johann Martin von Eyb
action find
entity Grand Master of the Teutonic Knights
relation position held
['Johann Martin von Eyb', 'position held', 'Grand Master of the Teutonic Knights']
ASK WHERE { resource:Grand_Master_of_the_Teutonic_Knights property:position_held resource:Johann_Martin_von_Eyb }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q84201
P22
Q502895
USER
How many people are the offspring of Archduke Charles, Duke of Teschen ?
(c(Q502895),P22,Q84201)
action count
action filter_type
action find_reverse
entity Q84201
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q84201']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x rdf:type ontology:Q502895 . ?x property:P22 resource:Q84201 }
Archduke Charles, Duke of Teschen
action count
action filter_type
action find_reverse
entity Archduke Charles, Duke of Teschen
relation father
type common name
[{'concept': 'common name'}, 'father', 'Archduke Charles, Duke of Teschen']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x rdf:type ontology:common_name . ?x property:father resource:Archduke_Charles,_Duke_of_Teschen }
[]
common name
SYSTEM
6
Q234045 Q310807 Q702090 Q1032321 Q78784 Q447448
(c(Q502895),P22,Q84201)
action count
action filter_type
action find_reverse
entity Q84201
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q84201']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x rdf:type ontology:Q502895 . ?x property:P22 resource:Q84201 }
Maria Theresa of Austria, Queen of the Two Sicilies Archduke Albrecht, Duke of Teschen Archduke Wilhelm Franz of Austria Archduchess Maria Karoline of Austria Archduke Friedrich of Austria Archduke Karl Ferdinand of Austria
6
action count
action filter_type
action find_reverse
entity Archduke Charles, Duke of Teschen
relation father
type common name
[{'concept': 'common name'}, 'father', 'Archduke Charles, Duke of Teschen']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x rdf:type ontology:common_name . ?x property:father resource:Archduke_Charles,_Duke_of_Teschen }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3771673
P22
Q502895
USER
Who are the offspring of Joseph of Lorraine, Count of Harcourt ?
(c(Q502895),P22,Q3771673)
action filter_type
action find_reverse
entity Q3771673
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q3771673']
SELECT DISTINCT ?m WHERE { ?m property:P22 resource:Q3771673 . ?m rdf:type ontology:Q502895 }
Joseph of Lorraine, Count of Harcourt
action filter_type
action find_reverse
entity Joseph of Lorraine, Count of Harcourt
relation father
type common name
[{'concept': 'common name'}, 'father', 'Joseph of Lorraine, Count of Harcourt']
SELECT DISTINCT ?m WHERE { ?m property:father resource:Joseph_of_Lorraine,_Count_of_Harcourt . ?m rdf:type ontology:common_name }
[]
common name
Q3723256 Q22115685 Q3840447
SYSTEM
Élisabeth Sophie of Lorraine, Louis Marie Léopold of Lorraine, prince of Harcourt, Louise Henriette Françoise of Lorraine
Q3723256 Q22115685 Q3840447
(c(Q502895),P22,Q3771673)
action filter_type
action find_reverse
entity Q3771673
relation P22
type Q502895
The offspring of Joseph of Lorraine , Count of Harcourt are Louise [ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q3771673']
SELECT DISTINCT ?m WHERE { ?m property:P22 resource:Q3771673 . ?m rdf:type ontology:Q502895 }
Élisabeth Sophie of Lorraine Louis Marie Léopold of Lorraine, prince of Harcourt Louise Henriette Françoise of Lorraine
The offspring of Joseph of Lorraine , Count of Harcourt are Louise Élisabeth Sophie of Lorraine, Louis Marie Léopold of Lorraine, prince of Harcourt and Louise Henriette Françoise of Lorraine
Élisabeth Sophie of Lorraine Louis Marie Léopold of Lorraine, prince of Harcourt Louise Henriette Françoise of Lorraine
action filter_type
action find_reverse
entity Joseph of Lorraine, Count of Harcourt
relation father
type common name
[{'concept': 'common name'}, 'father', 'Joseph of Lorraine, Count of Harcourt']
SELECT DISTINCT ?m WHERE { ?m property:father resource:Joseph_of_Lorraine,_Count_of_Harcourt . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3723256 Q22115685 Q3840447
P40
Q502895
USER
Which people have those ones as a child ?
(c(Q502895),P40,Q3723256) (c(Q502895),P40,Q22115685) (c(Q502895),P40,Q3840447)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q3723256'] [{'concept': 'Q502895'}, 'P40', 'Q22115685'] [{'concept': 'Q502895'}, 'P40', 'Q3840447']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . VALUES ( ?l ) { ( resource:Q3723256 ) ( resource:Q22115685 ) ( resource:Q3840447 ) } . ?u property:P40 ?l }
Élisabeth Sophie of Lorraine Louis Marie Léopold of Lorraine, prince of Harcourt Louise Henriette Françoise of Lorraine
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Élisabeth Sophie of Lorraine'] [{'concept': 'common name'}, 'child', 'Louis Marie Léopold of Lorraine, prince of Harcourt'] [{'concept': 'common name'}, 'child', 'Louise Henriette Françoise of Lorraine']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . VALUES ( ?l ) { ( resource:Élisabeth_Sophie_of_Lorraine ) ( resource:Louis_Marie_Léopold_of_Lorraine,_prince_of_Harcourt ) ( resource:Louise_Henriette_Françoise_of_Lorraine ) } . ?u property:child ?l }
[]
common name
Q3771673
SYSTEM
Joseph of Lorraine, Count of Harcourt
Q3771673
(c(Q502895),P40,Q3723256) (c(Q502895),P40,Q22115685) (c(Q502895),P40,Q3840447)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[ANSWER] have those ones as a child
[{'concept': 'Q502895'}, 'P40', 'Q3723256'] [{'concept': 'Q502895'}, 'P40', 'Q22115685'] [{'concept': 'Q502895'}, 'P40', 'Q3840447']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . VALUES ( ?l ) { ( resource:Q3723256 ) ( resource:Q22115685 ) ( resource:Q3840447 ) } . ?u property:P40 ?l }
Joseph of Lorraine, Count of Harcourt
Joseph of Lorraine, Count of Harcourt have those ones as a child
Joseph of Lorraine, Count of Harcourt
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Élisabeth Sophie of Lorraine'] [{'concept': 'common name'}, 'child', 'Louis Marie Léopold of Lorraine, prince of Harcourt'] [{'concept': 'common name'}, 'child', 'Louise Henriette Françoise of Lorraine']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . VALUES ( ?l ) { ( resource:Élisabeth_Sophie_of_Lorraine ) ( resource:Louis_Marie_Léopold_of_Lorraine,_prince_of_Harcourt ) ( resource:Louise_Henriette_Françoise_of_Lorraine ) } . ?u property:child ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3771673
P53
Q8436
USER
Which family did that person belong to ?
(Q3771673,P53,c(Q8436))
action filter_type
action find
entity Q3771673
relation P53
type Q8436
['Q3771673', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?q WHERE { resource:Q3771673 property:P53 ?q . ?q rdf:type ontology:Q8436 }
Joseph of Lorraine, Count of Harcourt
action filter_type
action find
entity Joseph of Lorraine, Count of Harcourt
relation noble family
type family
['Joseph of Lorraine, Count of Harcourt', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?q WHERE { resource:Joseph_of_Lorraine,_Count_of_Harcourt property:noble_family ?q . ?q rdf:type ontology:family }
[]
family
Q1336538
SYSTEM
House of Guise
Q1336538
(Q3771673,P53,c(Q8436))
action filter_type
action find
entity Q3771673
relation P53
type Q8436
That person belonged to [ANSWER]
['Q3771673', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?q WHERE { resource:Q3771673 property:P53 ?q . ?q rdf:type ontology:Q8436 }
House of Guise
That person belonged to House of Guise
House of Guise
action filter_type
action find
entity Joseph of Lorraine, Count of Harcourt
relation noble family
type family
['Joseph of Lorraine, Count of Harcourt', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?q WHERE { resource:Joseph_of_Lorraine,_Count_of_Harcourt property:noble_family ?q . ?q rdf:type ontology:family }
[]