Simple Question (Direct)
Simple Question
Q11672200
P734
Q82799
USER
Who has the surname Jun Takada ?
(Q11672200,P734,c(Q82799))
action filter_type
action find
entity Q11672200
relation P734
type Q82799
['Q11672200', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q11672200 property:P734 ?m . ?m rdf:type ontology:Q82799 }
Jun Takada
action filter_type
action find
entity Jun Takada
relation family name
type name
['Jun Takada', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Jun_Takada property:family_name ?m . ?m rdf:type ontology:name }
[]
name
Q16884187
SYSTEM
Takada
Q16884187
(Q11672200,P734,c(Q82799))
action filter_type
action find
entity Q11672200
relation P734
type Q82799
Jun [ANSWER] has the surname Jun [ANSWER]
['Q11672200', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q11672200 property:P734 ?m . ?m rdf:type ontology:Q82799 }
Takada
Jun Takada has the surname Jun Takada
Takada
action filter_type
action find
entity Jun Takada
relation family name
type name
['Jun Takada', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Jun_Takada property:family_name ?m . ?m rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11672200
P106
Q12737077
USER
What does Jun Takada do for a living ?
(Q11672200,P106,c(Q12737077))
action filter_type
action find
entity Q11672200
relation P106
type Q12737077
['Q11672200', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q11672200 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Jun Takada
action filter_type
action find
entity Jun Takada
relation occupation
type occupation
['Jun Takada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Jun_Takada property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q169470
SYSTEM
physicist
Q169470
(Q11672200,P106,c(Q12737077))
action filter_type
action find
entity Q11672200
relation P106
type Q12737077
Jun Takada does a [ANSWER] for a living
['Q11672200', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q11672200 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
physicist
Jun Takada does a physicist for a living
physicist
action filter_type
action find
entity Jun Takada
relation occupation
type occupation
['Jun Takada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Jun_Takada property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3318488
Q12737077
USER
And also tell me about Mohamed Chihani?
(Q3318488,P106,c(Q12737077))
action filter_type
action find
entity Q3318488
relation P106
type Q12737077
['Q3318488', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q3318488 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Mohamed Chihani
action filter_type
action find
entity Mohamed Chihani
relation occupation
type occupation
['Mohamed Chihani', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Mohamed_Chihani property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q3318488,P106,c(Q12737077))
action filter_type
action find
entity Q3318488
relation P106
type Q12737077
[ANSWER]
['Q3318488', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q3318488 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
association football player
association football player
action filter_type
action find
entity Mohamed Chihani
relation occupation
type occupation
['Mohamed Chihani', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Mohamed_Chihani property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q937857 Q3924425 Q2736
P425
Q349
USER
Does that occupation have combined track and field events and association football as thier field of occupation ?
(Q937857,P425,Q3924425) (Q937857,P425,Q2736)
action is_in
entity Q937857
action intersection
action find_reverse
entity Q3924425
relation P425
action find_reverse
entity Q2736
relation P425
['Q937857', 'P425', 'Q3924425'] ['Q937857', 'P425', 'Q2736']
ASK WHERE { resource:Q937857 property:P425 resource:Q3924425 . resource:Q937857 property:P425 resource:Q2736 }
association football player combined track and field events association football
action is_in
entity association football player
action intersection
action find_reverse
entity combined track and field events
relation field of this occupation
action find_reverse
entity association football
relation field of this occupation
['association football player', 'field of this occupation', 'combined track and field events'] ['association football player', 'field of this occupation', 'association football']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:combined_track_and_field_events . resource:association_football_player property:field_of_this_occupation resource:association_football }
[]
sport
SYSTEM
NO and YES respectively
(Q937857,P425,Q3924425) (Q937857,P425,Q2736)
action is_in
entity Q937857
action intersection
action find_reverse
entity Q3924425
relation P425
action find_reverse
entity Q2736
relation P425
[ANSWER]
['Q937857', 'P425', 'Q3924425'] ['Q937857', 'P425', 'Q2736']
ASK WHERE { resource:Q937857 property:P425 resource:Q3924425 . resource:Q937857 property:P425 resource:Q2736 }
NO and YES respectively
action is_in
entity association football player
action intersection
action find_reverse
entity combined track and field events
relation field of this occupation
action find_reverse
entity association football
relation field of this occupation
['association football player', 'field of this occupation', 'combined track and field events'] ['association football player', 'field of this occupation', 'association football']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:combined_track_and_field_events . resource:association_football_player property:field_of_this_occupation resource:association_football }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of atleast 4 occupations ?
(c(Q12737077),P417,c(Q502895))
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 4
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?c >= 4 ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:P417 ?r . ?n rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q502895 } GROUP BY ?r } }
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 4
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?c >= 4 ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:patron_saint ?r . ?n rdf:type ontology:occupation . ?r rdf:type ontology:common_name } GROUP BY ?r } }
[]
common name occupation
Q43982 Q179718 Q43600
SYSTEM
Bartholomew the Apostle, Catherine of Alexandria, Matthew the Apostle
Q43982 Q179718 Q43600
(c(Q12737077),P417,c(Q502895))
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 4
[ANSWERS] are the patron saints of atleast 4 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?c >= 4 ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:P417 ?r . ?n rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q502895 } GROUP BY ?r } }
Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle
Bartholomew the Apostle, Catherine of Alexandria and Matthew the Apostle are the patron saints of atleast 4 occupations
Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 4
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?c >= 4 ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:patron_saint ?r . ?n rdf:type ontology:occupation . ?r rdf:type ontology:common_name } GROUP BY ?r } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P825
Q502895 Q7725634 Q41176
USER
How many people are greater number of literary works and buildings dedicated to than that person ?
(c(Q7725634)|c(Q41176),P825,c(Q502895))
[[{'concept': 'Q7725634'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P825 ?y } UNION { ?x property:P825 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q41176 }
[[{'concept': 'literary work'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:dedicated_to ?y } UNION { ?x property:dedicated_to ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:common_name . ?x rdf:type ontology:building }
[]
common name literary work building
Comparative|Count over More/Less|Mult. entity type|Clarification
Q43982
SYSTEM
Did you mean Bartholomew the Apostle ?
(c(Q7725634)|c(Q41176),P825,c(Q502895))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P825 ?y } UNION { ?x property:P825 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q41176 }
Did you mean Bartholomew the Apostle ?
Bartholomew the Apostle
[[{'concept': 'literary work'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:dedicated_to ?y } UNION { ?x property:dedicated_to ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:common_name . ?x rdf:type ontology:building }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Catherine of Alexandria. Could you tell me the answer for that?
(c(Q7725634)|c(Q41176),P825,c(Q502895))
Q179718
[[{'concept': 'Q7725634'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
[[{'concept': 'literary work'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
[]
SYSTEM
15
Q11403872 Q65318 Q448890 Q461258 Q174231 Q187550 Q313942 Q1036864 Q171977 Q11619989 Q382005 Q179971 Q164294 Q468122 Q317997
(c(Q7725634)|c(Q41176),P825,c(Q502895))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P825 ?y } UNION { ?x property:P825 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q41176 }
Kitabatake Akiyoshi Kibitsuhiko-no-mikoto Charlotte Saunders Cushman Yamato Takeru Meiji Toyotomi Hideyoshi Go-Daigo Kitabatake Akiie Tokugawa Ieyasu Prince Uji no Wakiiratsuko Sugawara no Michizane Chūai Saint Anna Nogi Maresuke Ōjin
15
[[{'concept': 'literary work'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:dedicated_to ?y } UNION { ?x property:dedicated_to ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:common_name . ?x rdf:type ontology:building }
[]