Simple Question (Direct)
Simple Question
Q5006130
P57
Q502895
USER
Which person directed C.I.D. Nazir ?
(Q5006130,P57,c(Q502895))
action filter_type
action find
entity Q5006130
relation P57
type Q502895
['Q5006130', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q5006130 property:P57 ?i . ?i rdf:type ontology:Q502895 }
C.I.D. Nazir
action filter_type
action find
entity C.I.D. Nazir
relation director
type common name
['C.I.D. Nazir', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:C.I.D._Nazir property:director ?i . ?i rdf:type ontology:common_name }
[]
common name
Q17402758
SYSTEM
P. Venu
Q17402758
(Q5006130,P57,c(Q502895))
action filter_type
action find
entity Q5006130
relation P57
type Q502895
[ANSWER] directed C.I.D. Nazir
['Q5006130', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q5006130 property:P57 ?i . ?i rdf:type ontology:Q502895 }
P. Venu
P. Venu directed C.I.D. Nazir
P. Venu
action filter_type
action find
entity C.I.D. Nazir
relation director
type common name
['C.I.D. Nazir', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:C.I.D._Nazir property:director ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17402758
P21
Q290
USER
Which sex does that person have ?
(Q17402758,P21,c(Q290))
action filter_type
action find
entity Q17402758
relation P21
type Q290
['Q17402758', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q17402758 property:P21 ?f . ?f rdf:type ontology:Q290 }
P. Venu
action filter_type
action find
entity P. Venu
relation gender
type sex
['P. Venu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:P._Venu property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q17402758,P21,c(Q290))
action filter_type
action find
entity Q17402758
relation P21
type Q290
That person has a [ANSWER]
['Q17402758', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q17402758 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity P. Venu
relation gender
type sex
['P. Venu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:P._Venu property:gender ?f . ?f rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q6109722 Q17402758
P21
Q290
USER
And also Roberto Elías
AND((Q17402758,P21,c(Q290)), (Q6109722,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q17402758
relation P21
action find
entity Q6109722
relation P21
type Q290
{'AND': [['Q17402758', 'P21', {'concept': 'Q290'}], ['Q6109722', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q6109722 property:P21 ?h . resource:Q17402758 property:P21 ?h }
Roberto Elías P. Venu
action filter_type
action intersection
action find
entity P. Venu
relation gender
action find
entity Roberto Elías
relation gender
type sex
{'AND': [['P. Venu', 'gender', {'concept': 'sex'}], ['Roberto Elías', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Roberto_Elías property:gender ?h . resource:P._Venu property:gender ?h }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q17402758,P21,c(Q290)), (Q6109722,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q17402758
relation P21
action find
entity Q6109722
relation P21
type Q290
[ANSWER]
{'AND': [['Q17402758', 'P21', {'concept': 'Q290'}], ['Q6109722', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q6109722 property:P21 ?h . resource:Q17402758 property:P21 ?h }
male
male
action filter_type
action intersection
action find
entity P. Venu
relation gender
action find
entity Roberto Elías
relation gender
type sex
{'AND': [['P. Venu', 'gender', {'concept': 'sex'}], ['Roberto Elías', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Roberto_Elías property:gender ?h . resource:P._Venu property:gender ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6581097 Q7603562
P106
Q502895
USER
How many people have career as male or State Surgeon General ?
(c(Q502895),P106,Q6581097) (c(Q502895),P106,Q7603562)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
action filter_type
action find_reverse
entity Q7603562
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q6581097'] [{'concept': 'Q502895'}, 'P106', 'Q7603562']
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { VALUES ( ?e ) { ( resource:Q6581097 ) ( resource:Q7603562 ) } . ?r property:P106 ?e }
male State Surgeon General
action count
action union
action filter_type
action find_reverse
entity male
relation occupation
type common name
action filter_type
action find_reverse
entity State Surgeon General
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male'] [{'concept': 'common name'}, 'occupation', 'State Surgeon General']
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { VALUES ( ?e ) { ( resource:male ) ( resource:State_Surgeon_General ) } . ?r property:occupation ?e }
[]
common name
SYSTEM
2
Q19920926 Q24877298
(c(Q502895),P106,Q6581097) (c(Q502895),P106,Q7603562)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
action filter_type
action find_reverse
entity Q7603562
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q6581097'] [{'concept': 'Q502895'}, 'P106', 'Q7603562']
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { VALUES ( ?e ) { ( resource:Q6581097 ) ( resource:Q7603562 ) } . ?r property:P106 ?e }
William West Grant Antonín Straka
2
action count
action union
action filter_type
action find_reverse
entity male
relation occupation
type common name
action filter_type
action find_reverse
entity State Surgeon General
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male'] [{'concept': 'common name'}, 'occupation', 'State Surgeon General']
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { VALUES ( ?e ) { ( resource:male ) ( resource:State_Surgeon_General ) } . ?r property:occupation ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1622272
P417
Q502895
USER
Which person is the patron saint of university teacher ?
(Q1622272,P417,c(Q502895))
action filter_type
action find
entity Q1622272
relation P417
type Q502895
['Q1622272', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q1622272 property:P417 ?z . ?z rdf:type ontology:Q502895 }
university teacher
action filter_type
action find
entity university teacher
relation patron saint
type common name
['university teacher', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:university_teacher property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
common name
Q9438
SYSTEM
Thomas Aquinas
Q9438
(Q1622272,P417,c(Q502895))
action filter_type
action find
entity Q1622272
relation P417
type Q502895
[ANSWER] is the patron saint of university teacher
['Q1622272', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q1622272 property:P417 ?z . ?z rdf:type ontology:Q502895 }
Thomas Aquinas
Thomas Aquinas is the patron saint of university teacher
Thomas Aquinas
action filter_type
action find
entity university teacher
relation patron saint
type common name
['university teacher', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:university_teacher property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q9438 Q8011
P737
Q502895
USER
Did Avicenna influence that one ?
(Q9438,P737,Q8011)
action is_in
entity Q8011
action find
entity Q9438
relation P737
['Q9438', 'P737', 'Q8011']
ASK WHERE { resource:Q9438 property:P737 resource:Q8011 }
Thomas Aquinas Avicenna
action is_in
entity Avicenna
action find
entity Thomas Aquinas
relation influenced by
['Thomas Aquinas', 'influenced by', 'Avicenna']
ASK WHERE { resource:Thomas_Aquinas property:influenced_by resource:Avicenna }
[]
common name
SYSTEM
YES
(Q9438,P737,Q8011)
action is_in
entity Q8011
action find
entity Q9438
relation P737
[ANSWER]
['Q9438', 'P737', 'Q8011']
ASK WHERE { resource:Q9438 property:P737 resource:Q8011 }
Yes
action is_in
entity Avicenna
action find
entity Thomas Aquinas
relation influenced by
['Thomas Aquinas', 'influenced by', 'Avicenna']
ASK WHERE { resource:Thomas_Aquinas property:influenced_by resource:Avicenna }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9438
P1066
Q502895
USER
Which person was the supervisor of Thomas Aquinas ?
(Q9438,P1066,c(Q502895))
action filter_type
action find
entity Q9438
relation P1066
type Q502895
['Q9438', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q9438 property:P1066 ?x }
Thomas Aquinas
action filter_type
action find
entity Thomas Aquinas
relation student of
type common name
['Thomas Aquinas', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Thomas_Aquinas property:student_of ?x }
[]
common name
Q60059
SYSTEM
Albertus Magnus
Q60059
(Q9438,P1066,c(Q502895))
action filter_type
action find
entity Q9438
relation P1066
type Q502895
[ANSWER] was the supervisor of Thomas Aquinas
['Q9438', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q9438 property:P1066 ?x }
Albertus Magnus
Albertus Magnus was the supervisor of Thomas Aquinas
Albertus Magnus
action filter_type
action find
entity Thomas Aquinas
relation student of
type common name
['Thomas Aquinas', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Thomas_Aquinas property:student_of ?x }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3498448
Q502895
USER
And also tell me about Stéphane Ginsburgh?
(Q3498448,P1066,c(Q502895))
action filter_type
action find
entity Q3498448
relation P1066
type Q502895
['Q3498448', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q3498448 property:P1066 ?c . ?c rdf:type ontology:Q502895 }
Stéphane Ginsburgh
action filter_type
action find
entity Stéphane Ginsburgh
relation student of
type common name
['Stéphane Ginsburgh', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Stéphane_Ginsburgh property:student_of ?c . ?c rdf:type ontology:common_name }
[]
common name
Q636398
SYSTEM
Claude Helffer
Q636398
(Q3498448,P1066,c(Q502895))
action filter_type
action find
entity Q3498448
relation P1066
type Q502895
[ANSWER]
['Q3498448', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q3498448 property:P1066 ?c . ?c rdf:type ontology:Q502895 }
Claude Helffer
Claude Helffer
action filter_type
action find
entity Stéphane Ginsburgh
relation student of
type common name
['Stéphane Ginsburgh', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Stéphane_Ginsburgh property:student_of ?c . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q15961987
USER
Which television genres had max number of people as the dubbing artist ?
(c(Q15961987),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15961987
type Q502895
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?l ) { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?k ) WHERE { ?a rdf:type ontology:Q15961987 . ?z rdf:type ontology:Q502895 . ?a property:P725 ?z } GROUP BY ?a } } . { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?s ) WHERE { ?r property:P725 ?d . ?r rdf:type ontology:Q15961987 . ?d rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?s = ?l ) }
action argmax
action find_tuple_counts
relation voice actor
type television genre
type common name
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?l ) { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?k ) WHERE { ?a rdf:type ontology:television_genre . ?z rdf:type ontology:common_name . ?a property:voice_actor ?z } GROUP BY ?a } } . { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?s ) WHERE { ?r property:voice_actor ?d . ?r rdf:type ontology:television_genre . ?d rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?s = ?l ) }
[]
common name television genre
Q22773153
SYSTEM
Milo Murphy's Law
Q22773153
(c(Q15961987),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15961987
type Q502895
[ANSWER] had max number of people as the dubbing artist
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?l ) { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?k ) WHERE { ?a rdf:type ontology:Q15961987 . ?z rdf:type ontology:Q502895 . ?a property:P725 ?z } GROUP BY ?a } } . { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?s ) WHERE { ?r property:P725 ?d . ?r rdf:type ontology:Q15961987 . ?d rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?s = ?l ) }
Milo Murphy's Law
Milo Murphy's Law had max number of people as the dubbing artist
Milo Murphy's Law
action argmax
action find_tuple_counts
relation voice actor
type television genre
type common name
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?l ) { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?k ) WHERE { ?a rdf:type ontology:television_genre . ?z rdf:type ontology:common_name . ?a property:voice_actor ?z } GROUP BY ?a } } . { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?s ) WHERE { ?r property:voice_actor ?d . ?r rdf:type ontology:television_genre . ?d rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?s = ?l ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q22773153 Q935609
P170
Q502895
USER
Is Dan Povenmire the creater of that television genre ?
(Q22773153,P170,Q935609)
action is_in
entity Q935609
action find
entity Q22773153
relation P170
['Q22773153', 'P170', 'Q935609']
ASK WHERE { resource:Q22773153 property:P170 resource:Q935609 }
Milo Murphy's Law Dan Povenmire
action is_in
entity Dan Povenmire
action find
entity Milo Murphy's Law
relation creator
["Milo Murphy's Law", 'creator', 'Dan Povenmire']
ASK WHERE { resource:Milo_Murphy's_Law property:creator resource:Dan_Povenmire }
[]
common name
SYSTEM
YES
(Q22773153,P170,Q935609)
action is_in
entity Q935609
action find
entity Q22773153
relation P170
[ANSWER]
['Q22773153', 'P170', 'Q935609']
ASK WHERE { resource:Q22773153 property:P170 resource:Q935609 }
Yes
action is_in
entity Dan Povenmire
action find
entity Milo Murphy's Law
relation creator
["Milo Murphy's Law", 'creator', 'Dan Povenmire']
ASK WHERE { resource:Milo_Murphy's_Law property:creator resource:Dan_Povenmire }
[]