Simple Question (Direct)
Simple Question
Q3425833
P9
Q502895
USER
Which person is the sister of Liutgarde ?
(Q3425833,P9,c(Q502895))
action filter_type
action find
entity Q3425833
relation P9
type Q502895
['Q3425833', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q3425833 property:P9 ?c . ?c rdf:type ontology:Q502895 }
Liutgarde
action filter_type
action find
entity Liutgarde
relation sister
type common name
['Liutgarde', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Liutgarde property:sister ?c . ?c rdf:type ontology:common_name }
[]
common name
Q273319
SYSTEM
Matilda, Abbess of Quedlinburg
Q273319
(Q3425833,P9,c(Q502895))
action filter_type
action find
entity Q3425833
relation P9
type Q502895
[ANSWER] is the sister of Liutgarde
['Q3425833', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q3425833 property:P9 ?c . ?c rdf:type ontology:Q502895 }
Matilda, Abbess of Quedlinburg
Matilda, Abbess of Quedlinburg is the sister of Liutgarde
Matilda, Abbess of Quedlinburg
action filter_type
action find
entity Liutgarde
relation sister
type common name
['Liutgarde', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Liutgarde property:sister ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q273319
P7
Q502895
USER
Who have that one as their brother ?
(Q273319,P7,c(Q502895))
action filter_type
action find
entity Q273319
relation P7
type Q502895
['Q273319', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q273319 property:P7 ?r . ?r rdf:type ontology:Q502895 }
Matilda, Abbess of Quedlinburg
action filter_type
action find
entity Matilda, Abbess of Quedlinburg
relation brother
type common name
['Matilda, Abbess of Quedlinburg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Matilda,_Abbess_of_Quedlinburg property:brother ?r . ?r rdf:type ontology:common_name }
[]
common name
Q150512 Q535186 Q504535
SYSTEM
Otto II, Holy Roman Emperor, William, Archbishop of Mainz, Liudolf, Duke of Swabia
Q150512 Q535186 Q504535
(Q273319,P7,c(Q502895))
action filter_type
action find
entity Q273319
relation P7
type Q502895
[ANSWERS]
['Q273319', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q273319 property:P7 ?r . ?r rdf:type ontology:Q502895 }
Otto II, Holy Roman Emperor William, Archbishop of Mainz Liudolf, Duke of Swabia
Otto II, Holy Roman Emperor, William, Archbishop of Mainz and Liudolf, Duke of Swabia have that one as their brother
Otto II, Holy Roman Emperor William, Archbishop of Mainz Liudolf, Duke of Swabia
action filter_type
action find
entity Matilda, Abbess of Quedlinburg
relation brother
type common name
['Matilda, Abbess of Quedlinburg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Matilda,_Abbess_of_Quedlinburg property:brother ?r . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2143697
P7
Q502895
USER
Did Stefan Wessels have those ones as brother ?
(Q2143697,P7,Q150512) (Q2143697,P7,Q535186) (Q2143697,P7,Q504535)
action is_in
entity prev_answer
action find
entity Q2143697
relation P7
['Q2143697', 'P7', 'Q150512'] ['Q2143697', 'P7', 'Q535186'] ['Q2143697', 'P7', 'Q504535']
ASK WHERE { resource:Q2143697 property:P7 ?t . VALUES ( ?t ) { ( resource:Q150512 ) ( resource:Q535186 ) ( resource:Q504535 ) } }
Stefan Wessels
action is_in
entity prev_answer
action find
entity Stefan Wessels
relation brother
['Stefan Wessels', 'brother', 'Otto II, Holy Roman Emperor'] ['Stefan Wessels', 'brother', 'William, Archbishop of Mainz'] ['Stefan Wessels', 'brother', 'Liudolf, Duke of Swabia']
ASK WHERE { resource:Stefan_Wessels property:brother ?t . VALUES ( ?t ) { ( resource:Otto_II,_Holy_Roman_Emperor ) ( resource:William,_Archbishop_of_Mainz ) ( resource:Liudolf,_Duke_of_Swabia ) } }
[]
common name
SYSTEM
NO
(Q2143697,P7,Q150512) (Q2143697,P7,Q535186) (Q2143697,P7,Q504535)
action is_in
entity prev_answer
action find
entity Q2143697
relation P7
[ANSWER]
['Q2143697', 'P7', 'Q150512'] ['Q2143697', 'P7', 'Q535186'] ['Q2143697', 'P7', 'Q504535']
ASK WHERE { resource:Q2143697 property:P7 ?t . VALUES ( ?t ) { ( resource:Q150512 ) ( resource:Q535186 ) ( resource:Q504535 ) } }
No
action is_in
entity prev_answer
action find
entity Stefan Wessels
relation brother
['Stefan Wessels', 'brother', 'Otto II, Holy Roman Emperor'] ['Stefan Wessels', 'brother', 'William, Archbishop of Mainz'] ['Stefan Wessels', 'brother', 'Liudolf, Duke of Swabia']
ASK WHERE { resource:Stefan_Wessels property:brother ?t . VALUES ( ?t ) { ( resource:Otto_II,_Holy_Roman_Emperor ) ( resource:William,_Archbishop_of_Mainz ) ( resource:Liudolf,_Duke_of_Swabia ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q535186 Q2959260
P7
Q502895
USER
Does Charles Gros have William, Archbishop of Mainz as their sibling ?
(Q535186,P7,Q2959260)
action is_in
entity Q2959260
action find
entity Q535186
relation P7
['Q535186', 'P7', 'Q2959260']
ASK WHERE { resource:Q535186 property:P7 resource:Q2959260 }
William, Archbishop of Mainz Charles Gros
action is_in
entity Charles Gros
action find
entity William, Archbishop of Mainz
relation brother
['William, Archbishop of Mainz', 'brother', 'Charles Gros']
ASK WHERE { resource:William,_Archbishop_of_Mainz property:brother resource:Charles_Gros }
[]
common name
SYSTEM
NO
(Q535186,P7,Q2959260)
action is_in
entity Q2959260
action find
entity Q535186
relation P7
[ANSWER]
['Q535186', 'P7', 'Q2959260']
ASK WHERE { resource:Q535186 property:P7 resource:Q2959260 }
No
action is_in
entity Charles Gros
action find
entity William, Archbishop of Mainz
relation brother
['William, Archbishop of Mainz', 'brother', 'Charles Gros']
ASK WHERE { resource:William,_Archbishop_of_Mainz property:brother resource:Charles_Gros }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q273319 Q5627182 Q40623
P20
Q56061
USER
Did Matilda, Abbess of Quedlinburg expire at Güvercinlik, Sason and Quedlinburg ?
(Q273319,P20,Q5627182) (Q273319,P20,Q40623)
action is_in
entity Q273319
action intersection
action find_reverse
entity Q5627182
relation P20
action find_reverse
entity Q40623
relation P20
['Q273319', 'P20', 'Q5627182'] ['Q273319', 'P20', 'Q40623']
ASK WHERE { resource:Q273319 property:P20 resource:Q5627182 . resource:Q273319 property:P20 resource:Q40623 }
Matilda, Abbess of Quedlinburg Güvercinlik, Sason Quedlinburg
action is_in
entity Matilda, Abbess of Quedlinburg
action intersection
action find_reverse
entity Güvercinlik, Sason
relation place of death
action find_reverse
entity Quedlinburg
relation place of death
['Matilda, Abbess of Quedlinburg', 'place of death', 'Güvercinlik, Sason'] ['Matilda, Abbess of Quedlinburg', 'place of death', 'Quedlinburg']
ASK WHERE { resource:Matilda,_Abbess_of_Quedlinburg property:place_of_death resource:Güvercinlik,_Sason . resource:Matilda,_Abbess_of_Quedlinburg property:place_of_death resource:Quedlinburg }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q273319,P20,Q5627182) (Q273319,P20,Q40623)
action is_in
entity Q273319
action intersection
action find_reverse
entity Q5627182
relation P20
action find_reverse
entity Q40623
relation P20
[ANSWER]
['Q273319', 'P20', 'Q5627182'] ['Q273319', 'P20', 'Q40623']
ASK WHERE { resource:Q273319 property:P20 resource:Q5627182 . resource:Q273319 property:P20 resource:Q40623 }
NO and YES respectively
action is_in
entity Matilda, Abbess of Quedlinburg
action intersection
action find_reverse
entity Güvercinlik, Sason
relation place of death
action find_reverse
entity Quedlinburg
relation place of death
['Matilda, Abbess of Quedlinburg', 'place of death', 'Güvercinlik, Sason'] ['Matilda, Abbess of Quedlinburg', 'place of death', 'Quedlinburg']
ASK WHERE { resource:Matilda,_Abbess_of_Quedlinburg property:place_of_death resource:Güvercinlik,_Sason . resource:Matilda,_Abbess_of_Quedlinburg property:place_of_death resource:Quedlinburg }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3425833 Q6262066 Q1918140
P7
Q502895
USER
Did Liutgarde have John Volk and Meinrad Dreher as brother ?
(Q3425833,P7,Q6262066) (Q3425833,P7,Q1918140)
action is_in
entity Q3425833
action intersection
action find_reverse
entity Q6262066
relation P7
action find_reverse
entity Q1918140
relation P7
['Q3425833', 'P7', 'Q6262066'] ['Q3425833', 'P7', 'Q1918140']
ASK WHERE { resource:Q3425833 property:P7 resource:Q1918140 . resource:Q3425833 property:P7 resource:Q6262066 }
Liutgarde John Volk Meinrad Dreher
action is_in
entity Liutgarde
action intersection
action find_reverse
entity John Volk
relation brother
action find_reverse
entity Meinrad Dreher
relation brother
['Liutgarde', 'brother', 'John Volk'] ['Liutgarde', 'brother', 'Meinrad Dreher']
ASK WHERE { resource:Liutgarde property:brother resource:Meinrad_Dreher . resource:Liutgarde property:brother resource:John_Volk }
[]
common name
SYSTEM
NO
(Q3425833,P7,Q6262066) (Q3425833,P7,Q1918140)
action is_in
entity Q3425833
action intersection
action find_reverse
entity Q6262066
relation P7
action find_reverse
entity Q1918140
relation P7
[ANSWER]
['Q3425833', 'P7', 'Q6262066'] ['Q3425833', 'P7', 'Q1918140']
ASK WHERE { resource:Q3425833 property:P7 resource:Q1918140 . resource:Q3425833 property:P7 resource:Q6262066 }
No
action is_in
entity Liutgarde
action intersection
action find_reverse
entity John Volk
relation brother
action find_reverse
entity Meinrad Dreher
relation brother
['Liutgarde', 'brother', 'John Volk'] ['Liutgarde', 'brother', 'Meinrad Dreher']
ASK WHERE { resource:Liutgarde property:brother resource:Meinrad_Dreher . resource:Liutgarde property:brother resource:John_Volk }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3123443 Q40623
P17
Q1048835
USER
Which political territories do Quedlinburg or geography of New Brunswick belong to ?
OR((Q40623,P17,c(Q1048835)), (Q3123443,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q40623
relation P17
action find
entity Q3123443
relation P17
type Q1048835
{'OR': [['Q40623', 'P17', {'concept': 'Q1048835'}], ['Q3123443', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { VALUES ( ?g ) { ( resource:Q40623 ) ( resource:Q3123443 ) } . ?g property:P17 ?m } }
geography of New Brunswick Quedlinburg
action filter_type
action union
action find
entity Quedlinburg
relation country
action find
entity geography of New Brunswick
relation country
type political territorial entity
{'OR': [['Quedlinburg', 'country', {'concept': 'political territorial entity'}], ['geography of New Brunswick', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { VALUES ( ?g ) { ( resource:Quedlinburg ) ( resource:geography_of_New_Brunswick ) } . ?g property:country ?m } }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q40623,P17,c(Q1048835)), (Q3123443,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q40623
relation P17
action find
entity Q3123443
relation P17
type Q1048835
[ANSWERS] Quedlinburg or geography of New Brunswick belong to
{'OR': [['Q40623', 'P17', {'concept': 'Q1048835'}], ['Q3123443', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { VALUES ( ?g ) { ( resource:Q40623 ) ( resource:Q3123443 ) } . ?g property:P17 ?m } }
Canada Germany
Canada and Germany Quedlinburg or geography of New Brunswick belong to
Canada Germany
action filter_type
action union
action find
entity Quedlinburg
relation country
action find
entity geography of New Brunswick
relation country
type political territorial entity
{'OR': [['Quedlinburg', 'country', {'concept': 'political territorial entity'}], ['geography of New Brunswick', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { VALUES ( ?g ) { ( resource:Quedlinburg ) ( resource:geography_of_New_Brunswick ) } . ?g property:country ?m } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q16 Q183
P6
Q502895
USER
Which people are the head of government of Canada and Germany ?
(Q16,P6,c(Q502895)) (Q183,P6,c(Q502895))
action union
action filter_type
action find
entity Q16
relation P6
type Q502895
action filter_type
action find
entity Q183
relation P6
type Q502895
['Q16', 'P6', {'concept': 'Q502895'}] ['Q183', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?t property:P6 ?m . VALUES ( ?t ) { ( resource:Q16 ) ( resource:Q183 ) } }
Canada Germany
action union
action filter_type
action find
entity Canada
relation head of government
type common name
action filter_type
action find
entity Germany
relation head of government
type common name
['Canada', 'head of government', {'concept': 'common name'}] ['Germany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?t property:head_of_government ?m . VALUES ( ?t ) { ( resource:Canada ) ( resource:Germany ) } }
[]
common name
Q2492 Q2514 Q567
SYSTEM
Konrad Adenauer, Willy Brandt, Angela Merkel
Q3099714 Q206 Q128708 Q128702 Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q567
(Q16,P6,c(Q502895)) (Q183,P6,c(Q502895))
action union
action filter_type
action find
entity Q16
relation P6
type Q502895
action filter_type
action find
entity Q183
relation P6
type Q502895
[ANSWERS] are the head of government of Canada and Germany
['Q16', 'P6', {'concept': 'Q502895'}] ['Q183', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?t property:P6 ?m . VALUES ( ?t ) { ( resource:Q16 ) ( resource:Q183 ) } }
Justin Trudeau Stephen Harper Alexander Mackenzie John A. Macdonald Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Angela Merkel
Konrad Adenauer, Willy Brandt and Angela Merkel are the head of government of Canada and Germany
Konrad Adenauer Willy Brandt Angela Merkel
action union
action filter_type
action find
entity Canada
relation head of government
type common name
action filter_type
action find
entity Germany
relation head of government
type common name
['Canada', 'head of government', {'concept': 'common name'}] ['Germany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?t property:head_of_government ?m . VALUES ( ?t ) { ( resource:Canada ) ( resource:Germany ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2492
P991
Q13365595
USER
Which proportional representations had that person as their successful candidate ?
(c(Q13365595),P991,Q2492)
action filter_type
action find_reverse
entity Q2492
relation P991
type Q13365595
[{'concept': 'Q13365595'}, 'P991', 'Q2492']
SELECT DISTINCT ?d WHERE { ?d property:P991 resource:Q2492 . ?d rdf:type ontology:Q13365595 }
Konrad Adenauer
action filter_type
action find_reverse
entity Konrad Adenauer
relation successful candidate
type proportional representation
[{'concept': 'proportional representation'}, 'successful candidate', 'Konrad Adenauer']
SELECT DISTINCT ?d WHERE { ?d property:successful_candidate resource:Konrad_Adenauer . ?d rdf:type ontology:proportional_representation }
[]
proportional representation
Clarification for simple ques.
Q567
SYSTEM
Did you mean Angela Merkel ?
Q2492 Q2514 Q567
(c(Q13365595),P991,Q2492) (c(Q13365595),P991,Q2514) (c(Q13365595),P991,Q567)
[ANSWER]
[{'concept': 'Q13365595'}, 'P991', 'Q2492'] [{'concept': 'Q13365595'}, 'P991', 'Q2514'] [{'concept': 'Q13365595'}, 'P991', 'Q567']
SELECT DISTINCT ?d WHERE { ?d property:P991 resource:Q2492 . ?d rdf:type ontology:Q13365595 }
Konrad Adenauer Willy Brandt Angela Merkel
Did you mean Angela Merkel ?
Angela Merkel
[{'concept': 'proportional representation'}, 'successful candidate', 'Konrad Adenauer'] [{'concept': 'proportional representation'}, 'successful candidate', 'Willy Brandt'] [{'concept': 'proportional representation'}, 'successful candidate', 'Angela Merkel']
SELECT DISTINCT ?d WHERE { ?d property:successful_candidate resource:Konrad_Adenauer . ?d rdf:type ontology:proportional_representation }
[]
Simple Question (Coreferenced)
USER
No, I meant Konrad Adenauer. Could you tell me the answer for that?
(c(Q13365595),P991,Q2492)
Q2492
[{'concept': 'Q13365595'}, 'P991', 'Q2492']
[{'concept': 'proportional representation'}, 'successful candidate', 'Konrad Adenauer']
[]
Q695222 Q699574 Q699774
SYSTEM
West German federal election 1949, West German federal election 1961, West German federal election 1957
Q695222 Q699574 Q699774 Q699784
(c(Q13365595),P991,Q2492)
action filter_type
action find_reverse
entity Q2492
relation P991
type Q13365595
[ANSWERS] had that person as their successful candidate
[{'concept': 'Q13365595'}, 'P991', 'Q2492']
SELECT DISTINCT ?d WHERE { ?d property:P991 resource:Q2492 . ?d rdf:type ontology:Q13365595 }
West German federal election 1949 West German federal election 1961 West German federal election 1957 West German federal election 1953
West German federal election 1949, West German federal election 1961 and West German federal election 1957 had that person as their successful candidate
West German federal election 1949 West German federal election 1961 West German federal election 1957
action filter_type
action find_reverse
entity Konrad Adenauer
relation successful candidate
type proportional representation
[{'concept': 'proportional representation'}, 'successful candidate', 'Konrad Adenauer']
SELECT DISTINCT ?d WHERE { ?d property:successful_candidate resource:Konrad_Adenauer . ?d rdf:type ontology:proportional_representation }
[]