Simple Question (Direct)
Simple Question
Q432429
P40
Q502895
USER
Who are an offsprings of Hugh XII of Lusignan ?
(Q432429,P40,c(Q502895))
action filter_type
action find
entity Q432429
relation P40
type Q502895
['Q432429', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q432429 property:P40 ?a . ?a rdf:type ontology:Q502895 }
Hugh XII of Lusignan
action filter_type
action find
entity Hugh XII of Lusignan
relation child
type common name
['Hugh XII of Lusignan', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Hugh_XII_of_Lusignan property:child ?a . ?a rdf:type ontology:common_name }
[]
common name
Q10795576 Q432467 Q432490
SYSTEM
Joan of Lusignan, Hugh XIII of Lusignan, Guy of Lusignan, Count of Angoulême
Q432490 Q459175 Q10795576 Q432467
(Q432429,P40,c(Q502895))
action filter_type
action find
entity Q432429
relation P40
type Q502895
[ANSWERS]
['Q432429', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q432429 property:P40 ?a . ?a rdf:type ontology:Q502895 }
Guy of Lusignan, Count of Angoulême Yolanda of Lusignan Joan of Lusignan Hugh XIII of Lusignan
An offsprings of Hugh XII of Lusignan are Joan of Lusignan, Hugh XIII of Lusignan and Guy of Lusignan, Count of Angoulême
Joan of Lusignan Hugh XIII of Lusignan Guy of Lusignan, Count of Angoulême
action filter_type
action find
entity Hugh XII of Lusignan
relation child
type common name
['Hugh XII of Lusignan', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Hugh_XII_of_Lusignan property:child ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q10795576 Q432467 Q432490
P7
Q502895
USER
Who have those ones as their brother ?
(Q10795576,P7,c(Q502895)) (Q432467,P7,c(Q502895)) (Q432490,P7,c(Q502895))
action filter_type
action find
entity prev_answer
relation P7
type Q502895
['Q10795576', 'P7', {'concept': 'Q502895'}] ['Q432467', 'P7', {'concept': 'Q502895'}] ['Q432490', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?v ) { ( resource:Q432490 ) ( resource:Q459175 ) ( resource:Q10795576 ) } . ?v property:P7 ?t . ?t rdf:type ontology:Q502895 }
Joan of Lusignan Hugh XIII of Lusignan Guy of Lusignan, Count of Angoulême
action filter_type
action find
entity prev_answer
relation brother
type common name
['Joan of Lusignan', 'brother', {'concept': 'common name'}] ['Hugh XIII of Lusignan', 'brother', {'concept': 'common name'}] ['Guy of Lusignan, Count of Angoulême', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?v ) { ( resource:Guy_of_Lusignan,_Count_of_Angoulême ) ( resource:Yolanda_of_Lusignan ) ( resource:Joan_of_Lusignan ) } . ?v property:brother ?t . ?t rdf:type ontology:common_name }
[]
common name
Q432467 Q432467 Q432490
SYSTEM
Guy of Lusignan, Count of Angoulême for 3rd, Hugh XIII of Lusignan for 1st, 2nd
Q432490 Q432467 Q432490 Q432467
(Q10795576,P7,c(Q502895)) (Q432467,P7,c(Q502895)) (Q432490,P7,c(Q502895))
action filter_type
action find
entity prev_answer
relation P7
type Q502895
[ANSWERS]
['Q10795576', 'P7', {'concept': 'Q502895'}] ['Q432467', 'P7', {'concept': 'Q502895'}] ['Q432490', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?v ) { ( resource:Q432490 ) ( resource:Q459175 ) ( resource:Q10795576 ) } . ?v property:P7 ?t . ?t rdf:type ontology:Q502895 }
Guy of Lusignan, Count of Angoulême Hugh XIII of Lusignan Guy of Lusignan, Count of Angoulême Hugh XIII of Lusignan
Hugh XIII of Lusignan, Hugh XIII of Lusignan and Guy of Lusignan, Count of Angoulême have those ones as their brother
Hugh XIII of Lusignan Hugh XIII of Lusignan Guy of Lusignan, Count of Angoulême
action filter_type
action find
entity prev_answer
relation brother
type common name
['Joan of Lusignan', 'brother', {'concept': 'common name'}] ['Hugh XIII of Lusignan', 'brother', {'concept': 'common name'}] ['Guy of Lusignan, Count of Angoulême', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?v ) { ( resource:Guy_of_Lusignan,_Count_of_Angoulême ) ( resource:Yolanda_of_Lusignan ) ( resource:Joan_of_Lusignan ) } . ?v property:brother ?t . ?t rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q432490
P22
Q502895
USER
Which person was the father of that one ?
(Q432490,P22,c(Q502895))
action filter_type
action find
entity Q432490
relation P22
type Q502895
['Q432490', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q432490 property:P22 ?o . ?o rdf:type ontology:Q502895 }
Guy of Lusignan, Count of Angoulême
action filter_type
action find
entity Guy of Lusignan, Count of Angoulême
relation father
type common name
['Guy of Lusignan, Count of Angoulême', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Guy_of_Lusignan,_Count_of_Angoulême property:father ?o . ?o rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q432467
SYSTEM
Did you mean Hugh XIII of Lusignan ?
Q432467 Q432467 Q432490
(Q432467,P22,c(Q502895)) (Q432467,P22,c(Q502895)) (Q432490,P22,c(Q502895))
[ANSWER]
['Q432467', 'P22', {'concept': 'Q502895'}] ['Q432467', 'P22', {'concept': 'Q502895'}] ['Q432490', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q432490 property:P22 ?o . ?o rdf:type ontology:Q502895 }
Hugh XIII of Lusignan Hugh XIII of Lusignan Guy of Lusignan, Count of Angoulême
Did you mean Hugh XIII of Lusignan ?
Hugh XIII of Lusignan
['Hugh XIII of Lusignan', 'father', {'concept': 'common name'}] ['Hugh XIII of Lusignan', 'father', {'concept': 'common name'}] ['Guy of Lusignan, Count of Angoulême', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Guy_of_Lusignan,_Count_of_Angoulême property:father ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Guy of Lusignan, Count of Angoulême. Could you tell me the answer for that?
(Q432490,P22,c(Q502895))
Q432490
['Q432490', 'P22', {'concept': 'Q502895'}]
['Guy of Lusignan, Count of Angoulême', 'father', {'concept': 'common name'}]
[]
Q432429
SYSTEM
Hugh XII of Lusignan
Q432429
(Q432490,P22,c(Q502895))
action filter_type
action find
entity Q432490
relation P22
type Q502895
[ANSWER] was the father of that one
['Q432490', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q432490 property:P22 ?o . ?o rdf:type ontology:Q502895 }
Hugh XII of Lusignan
Hugh XII of Lusignan was the father of that one
Hugh XII of Lusignan
action filter_type
action find
entity Guy of Lusignan, Count of Angoulême
relation father
type common name
['Guy of Lusignan, Count of Angoulême', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Guy_of_Lusignan,_Count_of_Angoulême property:father ?o . ?o rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q432429 Q3572
P20
Q515
USER
Did that person die Tunis ?
(Q432429,P20,Q3572)
action is_in
entity Q3572
action find
entity Q432429
relation P20
['Q432429', 'P20', 'Q3572']
ASK WHERE { resource:Q432429 property:P20 resource:Q3572 }
Hugh XII of Lusignan Tunis
action is_in
entity Tunis
action find
entity Hugh XII of Lusignan
relation place of death
['Hugh XII of Lusignan', 'place of death', 'Tunis']
ASK WHERE { resource:Hugh_XII_of_Lusignan property:place_of_death resource:Tunis }
[]
city
SYSTEM
YES
(Q432429,P20,Q3572)
action is_in
entity Q3572
action find
entity Q432429
relation P20
[ANSWER]
['Q432429', 'P20', 'Q3572']
ASK WHERE { resource:Q432429 property:P20 resource:Q3572 }
Yes
action is_in
entity Tunis
action find
entity Hugh XII of Lusignan
relation place of death
['Hugh XII of Lusignan', 'place of death', 'Tunis']
ASK WHERE { resource:Hugh_XII_of_Lusignan property:place_of_death resource:Tunis }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15619164
USER
How many abstract beings have been dubbed by atleast 13 people ?
(c(Q15619164),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 13
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?f ) WHERE { ?e rdf:type ontology:Q502895 . ?n rdf:type ontology:Q15619164 . ?n property:P725 ?e } GROUP BY ?n } . FILTER ( ?f >= 13 ) }
action count
action atleast
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 13
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?f ) WHERE { ?e rdf:type ontology:common_name . ?n rdf:type ontology:abstract_being . ?n property:voice_actor ?e } GROUP BY ?n } . FILTER ( ?f >= 13 ) }
[]
common name abstract being
SYSTEM
1
Q5409355
(c(Q15619164),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 13
[ANSWER]
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?f ) WHERE { ?e rdf:type ontology:Q502895 . ?n rdf:type ontology:Q15619164 . ?n property:P725 ?e } GROUP BY ?n } . FILTER ( ?f >= 13 ) }
Fluttershy
1
action count
action atleast
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 13
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?f ) WHERE { ?e rdf:type ontology:common_name . ?n rdf:type ontology:abstract_being . ?n property:voice_actor ?e } GROUP BY ?n } . FILTER ( ?f >= 13 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1069460 Q432467
P47 P20
Q20667921
USER
Which french administrative divisions did Hugh XIII of Lusignan die or are adjacent to Lieudieu ?
OR((Q432467,P20,c(Q20667921)), (Q1069460,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q432467
relation P20
action find
entity Q1069460
relation P47
type Q20667921
{'OR': [['Q432467', 'P20', {'concept': 'Q20667921'}], ['Q1069460', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1069460 property:P47 ?z } UNION { resource:Q432467 property:P20 ?z } } . ?z rdf:type ontology:Q20667921 }
Lieudieu Hugh XIII of Lusignan
action filter_type
action union
action find
entity Hugh XIII of Lusignan
relation place of death
action find
entity Lieudieu
relation shares border with
type type of french administrative division
{'OR': [['Hugh XIII of Lusignan', 'place of death', {'concept': 'type of french administrative division'}], ['Lieudieu', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Lieudieu property:shares_border_with ?z } UNION { resource:Hugh_XIII_of_Lusignan property:place_of_death ?z } } . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q574064 Q1094326 Q1002760 Q1067827 Q134346 Q1066646
SYSTEM
Châtonnay, Arzay, Saint-Jean-de-Bournay, Semons, Angoulême, Villeneuve-de-Marc
Q574064 Q1094326 Q1002760 Q1067827 Q134346 Q1066646
OR((Q432467,P20,c(Q20667921)), (Q1069460,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q432467
relation P20
action find
entity Q1069460
relation P47
type Q20667921
Hugh XIII of Lusignan died or are adjacent to Lieudieu [ANSWERS]
{'OR': [['Q432467', 'P20', {'concept': 'Q20667921'}], ['Q1069460', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1069460 property:P47 ?z } UNION { resource:Q432467 property:P20 ?z } } . ?z rdf:type ontology:Q20667921 }
Châtonnay Arzay Saint-Jean-de-Bournay Semons Angoulême Villeneuve-de-Marc
Hugh XIII of Lusignan died or are adjacent to Lieudieu Châtonnay, Arzay, Saint-Jean-de-Bournay, Semons, Angoulême and Villeneuve-de-Marc
Châtonnay Arzay Saint-Jean-de-Bournay Semons Angoulême Villeneuve-de-Marc
action filter_type
action union
action find
entity Hugh XIII of Lusignan
relation place of death
action find
entity Lieudieu
relation shares border with
type type of french administrative division
{'OR': [['Hugh XIII of Lusignan', 'place of death', {'concept': 'type of french administrative division'}], ['Lieudieu', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Lieudieu property:shares_border_with ?z } UNION { resource:Hugh_XIII_of_Lusignan property:place_of_death ?z } } . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q134346
P1376
Q20667921
USER
Which french administrative divisions have Angoulême have their center of administration ?
(Q134346,P1376,c(Q20667921))
action filter_type
action find
entity Q134346
relation P1376
type Q20667921
['Q134346', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q134346 property:P1376 ?g . ?g rdf:type ontology:Q20667921 }
Angoulême
action filter_type
action find
entity Angoulême
relation capital of
type type of french administrative division
['Angoulême', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Angoulême property:capital_of ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1724152 Q1629018 Q1724155
SYSTEM
canton of Angoulême-Est, canton of Angoulême-Ouest, canton of Angoulême-Nord
Q1724152 Q1629018 Q1724155
(Q134346,P1376,c(Q20667921))
action filter_type
action find
entity Q134346
relation P1376
type Q20667921
[ANSWERS] have Angoulême have their center of administration
['Q134346', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q134346 property:P1376 ?g . ?g rdf:type ontology:Q20667921 }
canton of Angoulême-Est canton of Angoulême-Ouest canton of Angoulême-Nord
Canton of Angoulême-Est, canton of Angoulême-Ouest and canton of Angoulême-Nord have Angoulême have their center of administration
canton of Angoulême-Est canton of Angoulême-Ouest canton of Angoulême-Nord
action filter_type
action find
entity Angoulême
relation capital of
type type of french administrative division
['Angoulême', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Angoulême property:capital_of ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]