Simple Question (Direct)
Simple Question
Q273111
P26
Q502895
USER
Which person is the life partner of Margaret Beaufort, Countess of Stafford ?
(Q273111,P26,c(Q502895))
action filter_type
action find
entity Q273111
relation P26
type Q502895
['Q273111', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q273111 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Margaret Beaufort, Countess of Stafford
action filter_type
action find
entity Margaret Beaufort, Countess of Stafford
relation spouse
type common name
['Margaret Beaufort, Countess of Stafford', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Margaret_Beaufort,_Countess_of_Stafford property:spouse ?f . ?f rdf:type ontology:common_name }
[]
common name
Q1637267
SYSTEM
Humphrey Stafford, Earl of Stafford
Q1637267
(Q273111,P26,c(Q502895))
action filter_type
action find
entity Q273111
relation P26
type Q502895
[ANSWER] is the life partner of Margaret Beaufort, Countess of Stafford
['Q273111', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q273111 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Humphrey Stafford, Earl of Stafford
Humphrey Stafford, Earl of Stafford is the life partner of Margaret Beaufort, Countess of Stafford
Humphrey Stafford, Earl of Stafford
action filter_type
action find
entity Margaret Beaufort, Countess of Stafford
relation spouse
type common name
['Margaret Beaufort, Countess of Stafford', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Margaret_Beaufort,_Countess_of_Stafford property:spouse ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1637267
P7
Q502895
USER
Who is a sibling of that one ?
(c(Q502895),P7,Q1637267)
action filter_type
action find
entity Q1637267
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q1637267']
SELECT DISTINCT ?x WHERE { resource:Q1637267 property:P7 ?x . ?x rdf:type ontology:Q502895 }
Humphrey Stafford, Earl of Stafford
action filter_type
action find
entity Humphrey Stafford, Earl of Stafford
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Humphrey Stafford, Earl of Stafford']
SELECT DISTINCT ?x WHERE { resource:Humphrey_Stafford,_Earl_of_Stafford property:brother ?x . ?x rdf:type ontology:common_name }
[]
common name
Q6258771
SYSTEM
John Stafford, 1st Earl of Wiltshire
Q6258771
(c(Q502895),P7,Q1637267)
action filter_type
action find
entity Q1637267
relation P7
type Q502895
A sibling of that one is Sir [ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q1637267']
SELECT DISTINCT ?x WHERE { resource:Q1637267 property:P7 ?x . ?x rdf:type ontology:Q502895 }
John Stafford, 1st Earl of Wiltshire
A sibling of that one is Sir John Stafford, 1st Earl of Wiltshire
John Stafford, 1st Earl of Wiltshire
action filter_type
action find
entity Humphrey Stafford, Earl of Stafford
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Humphrey Stafford, Earl of Stafford']
SELECT DISTINCT ?x WHERE { resource:Humphrey_Stafford,_Earl_of_Stafford property:brother ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6258771
P27
Q7275
USER
Which state is that person an inhabitant of ?
(Q6258771,P27,c(Q7275))
action filter_type
action find
entity Q6258771
relation P27
type Q7275
['Q6258771', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { resource:Q6258771 property:P27 ?d . ?d rdf:type ontology:Q7275 }
John Stafford, 1st Earl of Wiltshire
action filter_type
action find
entity John Stafford, 1st Earl of Wiltshire
relation country of citizenship
type state
['John Stafford, 1st Earl of Wiltshire', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { resource:John_Stafford,_1st_Earl_of_Wiltshire property:country_of_citizenship ?d . ?d rdf:type ontology:state }
[]
state
Q179876
SYSTEM
Kingdom of England
Q179876
(Q6258771,P27,c(Q7275))
action filter_type
action find
entity Q6258771
relation P27
type Q7275
[ANSWER] is that person an inhabitant of
['Q6258771', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { resource:Q6258771 property:P27 ?d . ?d rdf:type ontology:Q7275 }
Kingdom of England
Kingdom of England is that person an inhabitant of
Kingdom of England
action filter_type
action find
entity John Stafford, 1st Earl of Wiltshire
relation country of citizenship
type state
['John Stafford, 1st Earl of Wiltshire', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { resource:John_Stafford,_1st_Earl_of_Wiltshire property:country_of_citizenship ?d . ?d rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q179876
P276
Q350604
USER
Which armed conflicts are located at that state ?
(c(Q350604),P276,Q179876)
action filter_type
action find_reverse
entity Q179876
relation P276
type Q350604
[{'concept': 'Q350604'}, 'P276', 'Q179876']
SELECT DISTINCT ?r WHERE { ?r property:P276 resource:Q179876 . ?r rdf:type ontology:Q350604 }
Kingdom of England
action filter_type
action find_reverse
entity Kingdom of England
relation location
type armed conflict
[{'concept': 'armed conflict'}, 'location', 'Kingdom of England']
SELECT DISTINCT ?r WHERE { ?r property:location resource:Kingdom_of_England . ?r rdf:type ontology:armed_conflict }
[]
armed conflict
Q3242848 Q2577772 Q80330
SYSTEM
First War of Scottish Independence, Wars of the Three Kingdoms, English Civil War
Q3242848 Q2577772 Q80330
(c(Q350604),P276,Q179876)
action filter_type
action find_reverse
entity Q179876
relation P276
type Q350604
[ANSWERS] are located at that state
[{'concept': 'Q350604'}, 'P276', 'Q179876']
SELECT DISTINCT ?r WHERE { ?r property:P276 resource:Q179876 . ?r rdf:type ontology:Q350604 }
First War of Scottish Independence Wars of the Three Kingdoms English Civil War
First War of Scottish Independence, Wars of the Three Kingdoms and English Civil War are located at that state
First War of Scottish Independence Wars of the Three Kingdoms English Civil War
action filter_type
action find_reverse
entity Kingdom of England
relation location
type armed conflict
[{'concept': 'armed conflict'}, 'location', 'Kingdom of England']
SELECT DISTINCT ?r WHERE { ?r property:location resource:Kingdom_of_England . ?r rdf:type ontology:armed_conflict }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q80330
P361
Q350604
USER
What is English Civil War a part of ?
(Q80330,P361,c(Q350604))
action filter_type
action find
entity Q80330
relation P361
type Q350604
['Q80330', 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?n WHERE { resource:Q80330 property:P361 ?n . ?n rdf:type ontology:Q350604 }
English Civil War
action filter_type
action find
entity English Civil War
relation part of
type armed conflict
['English Civil War', 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?n WHERE { resource:English_Civil_War property:part_of ?n . ?n rdf:type ontology:armed_conflict }
[]
armed conflict
Q2577772
SYSTEM
Wars of the Three Kingdoms
Q2577772
(Q80330,P361,c(Q350604))
action filter_type
action find
entity Q80330
relation P361
type Q350604
English Civil War a part of is the [ANSWER]
['Q80330', 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?n WHERE { resource:Q80330 property:P361 ?n . ?n rdf:type ontology:Q350604 }
Wars of the Three Kingdoms
English Civil War a part of is the Wars of the Three Kingdoms
Wars of the Three Kingdoms
action filter_type
action find
entity English Civil War
relation part of
type armed conflict
['English Civil War', 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?n WHERE { resource:English_Civil_War property:part_of ?n . ?n rdf:type ontology:armed_conflict }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1072042
Q350604
USER
And how about War in Somalia (2006-2009)?
(Q1072042,P361,c(Q350604))
action filter_type
action find
entity Q1072042
relation P361
type Q350604
['Q1072042', 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?a WHERE { resource:Q1072042 property:P361 ?a . ?a rdf:type ontology:Q350604 }
War in Somalia (2006-2009)
action filter_type
action find
entity War in Somalia (2006-2009)
relation part of
type armed conflict
['War in Somalia (2006-2009)', 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?a WHERE { resource:War_in_Somalia_(2006-2009) property:part_of ?a . ?a rdf:type ontology:armed_conflict }
[]
armed conflict
Q185729
SYSTEM
War on Terror
Q185729
(Q1072042,P361,c(Q350604))
action filter_type
action find
entity Q1072042
relation P361
type Q350604
[ANSWER]
['Q1072042', 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?a WHERE { resource:Q1072042 property:P361 ?a . ?a rdf:type ontology:Q350604 }
War on Terror
War on Terror
action filter_type
action find
entity War in Somalia (2006-2009)
relation part of
type armed conflict
['War in Somalia (2006-2009)', 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?a WHERE { resource:War_in_Somalia_(2006-2009) property:part_of ?a . ?a rdf:type ontology:armed_conflict }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q657414 Q6258771
P161 P40
Q502895
USER
Which people are an offsprings of John Stafford, 1st Earl of Wiltshire or are in Königswalzer ?
OR((Q6258771,P40,c(Q502895)), (Q657414,P161,c(Q502895)))
action filter_type
action union
action find
entity Q6258771
relation P40
action find
entity Q657414
relation P161
type Q502895
{'OR': [['Q6258771', 'P40', {'concept': 'Q502895'}], ['Q657414', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q6258771 property:P40 ?b } UNION { resource:Q657414 property:P161 ?b } } . ?b rdf:type ontology:Q502895 }
Königswalzer John Stafford, 1st Earl of Wiltshire
action filter_type
action union
action find
entity John Stafford, 1st Earl of Wiltshire
relation child
action find
entity Königswalzer
relation cast member
type common name
{'OR': [['John Stafford, 1st Earl of Wiltshire', 'child', {'concept': 'common name'}], ['Königswalzer', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { { resource:John_Stafford,_1st_Earl_of_Wiltshire property:child ?b } UNION { resource:Königswalzer property:cast_member ?b } } . ?b rdf:type ontology:common_name }
[]
common name
Q90368 Q5345399 Q77405 Q1927184 Q122471 Q1331809 Q1118631 Q2582158 Q2576735 Q86009
SYSTEM
Some of them are Theodor Danegger, Edward Stafford, 2nd Earl of Wiltshire, Marianne Koch, Michael Cramer, Linda Geiser, Ellen Frank, Hans Fitz, Willy Rösner, Willem Holsboer, Harry Hardt
Q104544 Q5345399 Q104568 Q89187 Q90368 Q77405 Q102504 Q122471 Q86009 Q1927184 Q1118631 Q2582158 Q2576735 Q1331809 Q66519
OR((Q6258771,P40,c(Q502895)), (Q657414,P161,c(Q502895)))
action filter_type
action union
action find
entity Q6258771
relation P40
action find
entity Q657414
relation P161
type Q502895
[ANSWERS] are an offsprings of John Stafford, 1st Earl of Wiltshire or are in Königswalzer
{'OR': [['Q6258771', 'P40', {'concept': 'Q502895'}], ['Q657414', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q6258771 property:P40 ?b } UNION { resource:Q657414 property:P161 ?b } } . ?b rdf:type ontology:Q502895 }
Joe Stöckel Edward Stafford, 2nd Earl of Wiltshire Hans Leibelt Harry Halm Theodor Danegger Marianne Koch Klaus Havenstein Linda Geiser Harry Hardt Michael Cramer Hans Fitz Willy Rösner Willem Holsboer Ellen Frank Walter Sedlmayr
Theodor Danegger, Edward Stafford, 2nd Earl of Wiltshire, Marianne Koch, Michael Cramer, Linda Geiser, Ellen Frank, Hans Fitz, Willy Rösner, Willem Holsboer and Harry Hardt are an offsprings of John Stafford, 1st Earl of Wiltshire or are in Königswalzer
Theodor Danegger Edward Stafford, 2nd Earl of Wiltshire Marianne Koch Michael Cramer Linda Geiser Ellen Frank Hans Fitz Willy Rösner Willem Holsboer Harry Hardt
action filter_type
action union
action find
entity John Stafford, 1st Earl of Wiltshire
relation child
action find
entity Königswalzer
relation cast member
type common name
{'OR': [['John Stafford, 1st Earl of Wiltshire', 'child', {'concept': 'common name'}], ['Königswalzer', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { { resource:John_Stafford,_1st_Earl_of_Wiltshire property:child ?b } UNION { resource:Königswalzer property:cast_member ?b } } . ?b rdf:type ontology:common_name }
[]