Simple Question (Direct)
Simple Question
Q4772900
P241
Q781132
USER
Which military branch contains Anthony L. Krotiak as its part ?
(Q4772900,P241,c(Q781132))
action filter_type
action find
entity Q4772900
relation P241
type Q781132
['Q4772900', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?r WHERE { resource:Q4772900 property:P241 ?r . ?r rdf:type ontology:Q781132 }
Anthony L. Krotiak
action filter_type
action find
entity Anthony L. Krotiak
relation military branch
type military branch
['Anthony L. Krotiak', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?r WHERE { resource:Anthony_L._Krotiak property:military_branch ?r . ?r rdf:type ontology:military_branch }
[]
military branch
Q9212
SYSTEM
United States Army
Q9212
(Q4772900,P241,c(Q781132))
action filter_type
action find
entity Q4772900
relation P241
type Q781132
Army [ANSWER] contains Anthony L. Krotiak as its part
['Q4772900', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?r WHERE { resource:Q4772900 property:P241 ?r . ?r rdf:type ontology:Q781132 }
United States Army
Army United States Army contains Anthony L. Krotiak as its part
United States Army
action filter_type
action find
entity Anthony L. Krotiak
relation military branch
type military branch
['Anthony L. Krotiak', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?r WHERE { resource:Anthony_L._Krotiak property:military_branch ?r . ?r rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9212
P69
Q502895
USER
Who studied at that military branch ?
(c(Q502895),P69,Q9212)
action filter_type
action find_reverse
entity Q9212
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q9212']
SELECT DISTINCT ?k WHERE { ?k property:P69 resource:Q9212 . ?k rdf:type ontology:Q502895 }
United States Army
action filter_type
action find_reverse
entity United States Army
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'United States Army']
SELECT DISTINCT ?k WHERE { ?k property:educated_at resource:United_States_Army . ?k rdf:type ontology:common_name }
[]
common name
Q5339560
SYSTEM
Edmund Hill
Q5339560
(c(Q502895),P69,Q9212)
action filter_type
action find_reverse
entity Q9212
relation P69
type Q502895
[ANSWER] studied at that military branch
[{'concept': 'Q502895'}, 'P69', 'Q9212']
SELECT DISTINCT ?k WHERE { ?k property:P69 resource:Q9212 . ?k rdf:type ontology:Q502895 }
Edmund Hill
Edmund Hill studied at that military branch
Edmund Hill
action filter_type
action find_reverse
entity United States Army
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'United States Army']
SELECT DISTINCT ?k WHERE { ?k property:educated_at resource:United_States_Army . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5339560
P21
Q290
USER
Which sex does that person have ?
(Q5339560,P21,c(Q290))
action filter_type
action find
entity Q5339560
relation P21
type Q290
['Q5339560', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q5339560 property:P21 ?l }
Edmund Hill
action filter_type
action find
entity Edmund Hill
relation gender
type sex
['Edmund Hill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Edmund_Hill property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5339560,P21,c(Q290))
action filter_type
action find
entity Q5339560
relation P21
type Q290
That person has a [ANSWER]
['Q5339560', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q5339560 property:P21 ?l }
male
That person has a male
male
action filter_type
action find
entity Edmund Hill
relation gender
type sex
['Edmund Hill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Edmund_Hill property:gender ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5339560
P106
Q12737077
USER
What are the job of Edmund Hill ?
(Q5339560,P106,c(Q12737077))
action filter_type
action find
entity Q5339560
relation P106
type Q12737077
['Q5339560', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q5339560 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Edmund Hill
action filter_type
action find
entity Edmund Hill
relation occupation
type occupation
['Edmund Hill', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Edmund_Hill property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q728425 Q189290
SYSTEM
balloonist, officer
Q728425 Q189290
(Q5339560,P106,c(Q12737077))
action filter_type
action find
entity Q5339560
relation P106
type Q12737077
The job of Edmund Hill are the [ANSWERS]
['Q5339560', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q5339560 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
balloonist officer
The job of Edmund Hill are the balloonist and officer
balloonist officer
action filter_type
action find
entity Edmund Hill
relation occupation
type occupation
['Edmund Hill', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Edmund_Hill property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6889983
Q12737077
USER
And how about Moe Jaffe?
(Q6889983,P106,c(Q12737077))
action filter_type
action find
entity Q6889983
relation P106
type Q12737077
['Q6889983', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q6889983 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Moe Jaffe
action filter_type
action find
entity Moe Jaffe
relation occupation
type occupation
['Moe Jaffe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Moe_Jaffe property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q753110
SYSTEM
songwriter
Q753110
(Q6889983,P106,c(Q12737077))
action filter_type
action find
entity Q6889983
relation P106
type Q12737077
[ANSWER]
['Q6889983', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q6889983 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
songwriter
songwriter
action filter_type
action find
entity Moe Jaffe
relation occupation
type occupation
['Moe Jaffe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Moe_Jaffe property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q502895 Q277759 Q571
USER
Which people plays a role in exactly 1 book series or books ?
(c(Q277759)|c(Q571),P674,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
action find_reverse_tuple_counts
relation P674
type Q502895
type Q571
value 1
[[{'concept': 'Q277759'}, {'concept': 'Q571'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) ?b WHERE { { ?b rdf:type ontology:Q502895 . ?e rdf:type ontology:Q277759 . ?e property:P674 ?b } UNION { ?e property:P674 ?b . ?b rdf:type ontology:Q502895 . ?e rdf:type ontology:Q571 } } GROUP BY ?b } . FILTER ( ?q = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation characters
type common name
type book series
action find_reverse_tuple_counts
relation characters
type common name
type book
value 1
[[{'concept': 'book series'}, {'concept': 'book'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) ?b WHERE { { ?b rdf:type ontology:common_name . ?e rdf:type ontology:book_series . ?e property:characters ?b } UNION { ?e property:characters ?b . ?b rdf:type ontology:common_name . ?e rdf:type ontology:book } } GROUP BY ?b } . FILTER ( ?q = 1 ) }
[]
common name book series book
Q9960 Q1401 Q43989
SYSTEM
Ronald Reagan, Petrarch, Grigori Rasputin
Q5343069 Q43989 Q80048 Q1401 Q9960
(c(Q277759)|c(Q571),P674,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
action find_reverse_tuple_counts
relation P674
type Q502895
type Q571
value 1
[ANSWERS] play a role in exactly 1 book series or books
[[{'concept': 'Q277759'}, {'concept': 'Q571'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) ?b WHERE { { ?b rdf:type ontology:Q502895 . ?e rdf:type ontology:Q277759 . ?e property:P674 ?b } UNION { ?e property:P674 ?b . ?b rdf:type ontology:Q502895 . ?e rdf:type ontology:Q571 } } GROUP BY ?b } . FILTER ( ?q = 1 ) }
Edward Garrard Marsh Grigori Rasputin Al Capone Petrarch Ronald Reagan
Ronald Reagan, Petrarch and Grigori Rasputin play a role in exactly 1 book series or books
Ronald Reagan Petrarch Grigori Rasputin
action equal
action union
action find_reverse_tuple_counts
relation characters
type common name
type book series
action find_reverse_tuple_counts
relation characters
type common name
type book
value 1
[[{'concept': 'book series'}, {'concept': 'book'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) ?b WHERE { { ?b rdf:type ontology:common_name . ?e rdf:type ontology:book_series . ?e property:characters ?b } UNION { ?e property:characters ?b . ?b rdf:type ontology:common_name . ?e rdf:type ontology:book } } GROUP BY ?b } . FILTER ( ?q = 1 ) }
[]