Simple Question (Direct)
Simple Question
Q428154
P40
Q502895
USER
Which people are a successors of Ingvar of Kiev ?
(Q428154,P40,c(Q502895))
action filter_type
action find
entity Q428154
relation P40
type Q502895
['Q428154', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q428154 property:P40 ?h . ?h rdf:type ontology:Q502895 }
Ingvar of Kiev
action filter_type
action find
entity Ingvar of Kiev
relation child
type common name
['Ingvar of Kiev', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Ingvar_of_Kiev property:child ?h . ?h rdf:type ontology:common_name }
[]
common name
Q3331104 Q24807898 Q24807844
SYSTEM
Grzymislawa of Luck, Vladimir Ingvarevich, Sviatoslav Ingvarevich
Q3331104 Q24807898 Q24807844
(Q428154,P40,c(Q502895))
action filter_type
action find
entity Q428154
relation P40
type Q502895
[ANSWERS] are a successors of Ingvar of Kiev
['Q428154', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q428154 property:P40 ?h . ?h rdf:type ontology:Q502895 }
Grzymislawa of Luck Vladimir Ingvarevich Sviatoslav Ingvarevich
Grzymislawa of Luck, Vladimir Ingvarevich and Sviatoslav Ingvarevich are a successors of Ingvar of Kiev
Grzymislawa of Luck Vladimir Ingvarevich Sviatoslav Ingvarevich
action filter_type
action find
entity Ingvar of Kiev
relation child
type common name
['Ingvar of Kiev', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Ingvar_of_Kiev property:child ?h . ?h rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q24807844
P22
Q502895
USER
Who was the father of that one ?
(Q24807844,P22,c(Q502895))
action filter_type
action find
entity Q24807844
relation P22
type Q502895
['Q24807844', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q24807844 property:P22 ?e . ?e rdf:type ontology:Q502895 }
Sviatoslav Ingvarevich
action filter_type
action find
entity Sviatoslav Ingvarevich
relation father
type common name
['Sviatoslav Ingvarevich', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Sviatoslav_Ingvarevich property:father ?e . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q24807898
SYSTEM
Did you mean Vladimir Ingvarevich ?
Q3331104 Q24807898 Q24807844
(Q3331104,P22,c(Q502895)) (Q24807898,P22,c(Q502895)) (Q24807844,P22,c(Q502895))
[ANSWER]
['Q3331104', 'P22', {'concept': 'Q502895'}] ['Q24807898', 'P22', {'concept': 'Q502895'}] ['Q24807844', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q24807844 property:P22 ?e . ?e rdf:type ontology:Q502895 }
Grzymislawa of Luck Vladimir Ingvarevich Sviatoslav Ingvarevich
Did you mean Vladimir Ingvarevich ?
Vladimir Ingvarevich
['Grzymislawa of Luck', 'father', {'concept': 'common name'}] ['Vladimir Ingvarevich', 'father', {'concept': 'common name'}] ['Sviatoslav Ingvarevich', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Sviatoslav_Ingvarevich property:father ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Sviatoslav Ingvarevich. Could you tell me the answer for that?
(Q24807844,P22,c(Q502895))
Q24807844
['Q24807844', 'P22', {'concept': 'Q502895'}]
['Sviatoslav Ingvarevich', 'father', {'concept': 'common name'}]
[]
Q428154
SYSTEM
Ingvar of Kiev
Q428154
(Q24807844,P22,c(Q502895))
action filter_type
action find
entity Q24807844
relation P22
type Q502895
The father of that one was Prince [ANSWER]
['Q24807844', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q24807844 property:P22 ?e . ?e rdf:type ontology:Q502895 }
Ingvar of Kiev
The father of that one was Prince Ingvar of Kiev
Ingvar of Kiev
action filter_type
action find
entity Sviatoslav Ingvarevich
relation father
type common name
['Sviatoslav Ingvarevich', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Sviatoslav_Ingvarevich property:father ?e . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P110
Q502895 Q2342494 Q26971562
USER
How many people illustrated approximately 25 collectables and comic formats ?
(c(Q2342494)|c(Q26971562),P110,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
value 25
[[{'concept': 'Q2342494'}, {'concept': 'Q26971562'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q26971562 ) } . ?a rdf:type ?b } GROUP BY ?g } . FILTER ( ?h = 25 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
value 25
[[{'concept': 'collectable'}, {'concept': 'comic format'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:comic_format ) } . ?a rdf:type ?b } GROUP BY ?g } . FILTER ( ?h = 25 ) }
[]
common name collectable comic format
SYSTEM
2
Q7027914 Q966547
(c(Q2342494)|c(Q26971562),P110,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
value 25
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q26971562'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q26971562 ) } . ?a rdf:type ?b } GROUP BY ?g } . FILTER ( ?h = 25 ) }
Nick Sharratt Léon Benett
2
action count
action approx
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
value 25
[[{'concept': 'collectable'}, {'concept': 'comic format'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:comic_format ) } . ?a rdf:type ?b } GROUP BY ?g } . FILTER ( ?h = 25 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q428154
P22
Q502895
USER
How many people were the dad of Ingvar of Kiev ?
(Q428154,P22,c(Q502895))
action count
action filter_type
action find
entity Q428154
relation P22
type Q502895
['Q428154', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q428154 property:P22 ?x . ?x rdf:type ontology:Q502895 }
Ingvar of Kiev
action count
action filter_type
action find
entity Ingvar of Kiev
relation father
type common name
['Ingvar of Kiev', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Ingvar_of_Kiev property:father ?x . ?x rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q497246
(Q428154,P22,c(Q502895))
action count
action filter_type
action find
entity Q428154
relation P22
type Q502895
[ANSWER]
['Q428154', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q428154 property:P22 ?x . ?x rdf:type ontology:Q502895 }
Yaroslav II of Kiev
1
action count
action filter_type
action find
entity Ingvar of Kiev
relation father
type common name
['Ingvar of Kiev', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Ingvar_of_Kiev property:father ?x . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5278755
Q502895
USER
And how about José Primo de Rivera?
(Q5278755,P22,c(Q502895))
action count
action filter_type
action find
entity Q5278755
relation P22
type Q502895
['Q5278755', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q5278755 property:P22 ?p . ?p rdf:type ontology:Q502895 }
José Primo de Rivera
action count
action filter_type
action find
entity José Primo de Rivera
relation father
type common name
['José Primo de Rivera', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:José_Primo_de_Rivera property:father ?p . ?p rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q5278755,P22,c(Q502895))
action count
action filter_type
action find
entity Q5278755
relation P22
type Q502895
[ANSWER]
['Q5278755', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q5278755 property:P22 ?p . ?p rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity José Primo de Rivera
relation father
type common name
['José Primo de Rivera', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:José_Primo_de_Rivera property:father ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5278755
P241
Q781132
USER
Which military branch is that person affiliated to ?
action filter_type
action find
entity Q5278755
relation P241
type Q781132
SELECT DISTINCT ?h WHERE { resource:Q5278755 property:P241 ?h . ?h rdf:type ontology:Q781132 }
José Primo de Rivera
action filter_type
action find
entity José Primo de Rivera
relation military branch
type military branch
SELECT DISTINCT ?h WHERE { resource:José_Primo_de_Rivera property:military_branch ?h . ?h rdf:type ontology:military_branch }
[]
military branch
Q676404
SYSTEM
Spanish Navy
Q676404
action filter_type
action find
entity Q5278755
relation P241
type Q781132
That person is affiliated with [ANSWER]
SELECT DISTINCT ?h WHERE { resource:Q5278755 property:P241 ?h . ?h rdf:type ontology:Q781132 }
Spanish Navy
That person is affiliated with Spanish Navy
Spanish Navy
action filter_type
action find
entity José Primo de Rivera
relation military branch
type military branch
SELECT DISTINCT ?h WHERE { resource:José_Primo_de_Rivera property:military_branch ?h . ?h rdf:type ontology:military_branch }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1816732 Q5278755
P241 P137
Q781132
USER
Which military branches are José Primo de Rivera affiliated to or can manage De Zeven Provinciën-class cruiser ?
OR((Q5278755,P241,c(Q781132)), (Q1816732,P137,c(Q781132)))
action filter_type
action union
action find
entity Q5278755
relation P241
action find
entity Q1816732
relation P137
type Q781132
{'OR': [['Q5278755', 'P241', {'concept': 'Q781132'}], ['Q1816732', 'P137', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q781132 . { { resource:Q5278755 property:P241 ?o } UNION { resource:Q1816732 property:P137 ?o } } }
De Zeven Provinciën-class cruiser José Primo de Rivera
action filter_type
action union
action find
entity José Primo de Rivera
relation military branch
action find
entity De Zeven Provinciën-class cruiser
relation operator
type military branch
{'OR': [['José Primo de Rivera', 'military branch', {'concept': 'military branch'}], ['De Zeven Provinciën-class cruiser', 'operator', {'concept': 'military branch'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:military_branch . { { resource:José_Primo_de_Rivera property:military_branch ?o } UNION { resource:De_Zeven_Provinciën-class_cruiser property:operator ?o } } }
[]
military branch
Q952444 Q676404 Q931281
SYSTEM
Peruvian Navy, Spanish Navy, Royal Netherlands Navy
Q952444 Q676404 Q931281
OR((Q5278755,P241,c(Q781132)), (Q1816732,P137,c(Q781132)))
action filter_type
action union
action find
entity Q5278755
relation P241
action find
entity Q1816732
relation P137
type Q781132
José Primo de Rivera are affiliated to manage the [ANSWERS]
{'OR': [['Q5278755', 'P241', {'concept': 'Q781132'}], ['Q1816732', 'P137', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q781132 . { { resource:Q5278755 property:P241 ?o } UNION { resource:Q1816732 property:P137 ?o } } }
Peruvian Navy Spanish Navy Royal Netherlands Navy
José Primo de Rivera are affiliated to manage the Peruvian Navy, Spanish Navy and Royal Netherlands Navy
Peruvian Navy Spanish Navy Royal Netherlands Navy
action filter_type
action union
action find
entity José Primo de Rivera
relation military branch
action find
entity De Zeven Provinciën-class cruiser
relation operator
type military branch
{'OR': [['José Primo de Rivera', 'military branch', {'concept': 'military branch'}], ['De Zeven Provinciën-class cruiser', 'operator', {'concept': 'military branch'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:military_branch . { { resource:José_Primo_de_Rivera property:military_branch ?o } UNION { resource:De_Zeven_Provinciën-class_cruiser property:operator ?o } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q5278755
P21 P40
Q502895
USER
Which people have José Primo de Rivera as a child and are a male ?
AND((c(Q502895),P40,Q5278755), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5278755
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q5278755'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P40 resource:Q5278755 . ?s property:P21 resource:Q6581097 }
male José Primo de Rivera
action filter_type
action intersection
action find_reverse
entity José Primo de Rivera
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'José Primo de Rivera'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:child resource:José_Primo_de_Rivera . ?s property:gender resource:male }
[]
common name
Q5932338
SYSTEM
Joaquín Primo de Rivera y Pérez de Acal
Q5932338
AND((c(Q502895),P40,Q5278755), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5278755
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have José Primo de Rivera as a child and are a male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q5278755'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P40 resource:Q5278755 . ?s property:P21 resource:Q6581097 }
Joaquín Primo de Rivera y Pérez de Acal
Joaquín Primo de Rivera y Pérez de Acal have José Primo de Rivera as a child and are a male
Joaquín Primo de Rivera y Pérez de Acal
action filter_type
action intersection
action find_reverse
entity José Primo de Rivera
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'José Primo de Rivera'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:child resource:José_Primo_de_Rivera . ?s property:gender resource:male }
[]