Simple Question (Direct)
Simple Question
Q7167157
P20
Q56061
USER
Where did the demise of Percival Wilde occur ?
(Q7167157,P20,c(Q56061))
action filter_type
action find
entity Q7167157
relation P20
type Q56061
['Q7167157', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q7167157 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Percival Wilde
action filter_type
action find
entity Percival Wilde
relation place of death
type administrative territorial entity
['Percival Wilde', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Percival_Wilde property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q7167157,P20,c(Q56061))
action filter_type
action find
entity Q7167157
relation P20
type Q56061
The demise of Percival Wilde occurred in [ANSWER]
['Q7167157', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q7167157 property:P20 ?i . ?i rdf:type ontology:Q56061 }
New York City
The demise of Percival Wilde occurred in New York City
New York City
action filter_type
action find
entity Percival Wilde
relation place of death
type administrative territorial entity
['Percival Wilde', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Percival_Wilde property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7167157
P69
Q163740
USER
What is the nonprofit organization where Percival Wilde was educated ?
(Q7167157,P69,c(Q163740))
action filter_type
action find
entity Q7167157
relation P69
type Q163740
['Q7167157', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q7167157 property:P69 ?n . ?n rdf:type ontology:Q163740 }
Percival Wilde
action filter_type
action find
entity Percival Wilde
relation educated at
type nonprofit organization
['Percival Wilde', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Percival_Wilde property:educated_at ?n . ?n rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49088
SYSTEM
Columbia University
Q49088
(Q7167157,P69,c(Q163740))
action filter_type
action find
entity Q7167157
relation P69
type Q163740
The nonprofit organization Percival Wilde was educated is at [ANSWER]
['Q7167157', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q7167157 property:P69 ?n . ?n rdf:type ontology:Q163740 }
Columbia University
The nonprofit organization Percival Wilde was educated is at Columbia University
Columbia University
action filter_type
action find
entity Percival Wilde
relation educated at
type nonprofit organization
['Percival Wilde', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Percival_Wilde property:educated_at ?n . ?n rdf:type ontology:nonprofit_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7167157
P21
Q290
USER
Which sex does that person have ?
(Q49088,P21,c(Q290))
action filter_type
action find
entity Q7167157
relation P21
type Q290
['Q49088', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q7167157 property:P21 ?t . ?t rdf:type ontology:Q290 }
Percival Wilde
action filter_type
action find
entity Percival Wilde
relation gender
type sex
['Columbia University', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Percival_Wilde property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q49088,P21,c(Q290))
action filter_type
action find
entity Q7167157
relation P21
type Q290
That person has a [ANSWER]
['Q49088', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q7167157 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Percival Wilde
relation gender
type sex
['Columbia University', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Percival_Wilde property:gender ?t . ?t rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q2454415
P21
Q502895
USER
Does Olav Nilsen have that sex as the sex ?
(Q2454415,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q2454415
relation P21
['Q2454415', 'P21', 'Q6581097']
ASK WHERE { resource:Q2454415 property:P21 resource:Q6581097 }
male Olav Nilsen
action is_in
entity male
action find
entity Olav Nilsen
relation gender
['Olav Nilsen', 'gender', 'male']
ASK WHERE { resource:Olav_Nilsen property:gender resource:male }
[]
common name
SYSTEM
YES
(Q2454415,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q2454415
relation P21
[ANSWER]
['Q2454415', 'P21', 'Q6581097']
ASK WHERE { resource:Q2454415 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Olav Nilsen
relation gender
['Olav Nilsen', 'gender', 'male']
ASK WHERE { resource:Olav_Nilsen property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6289314 Q7167157
P19
Q56061
USER
Which administrative territories are the birthplace of Percival Wilde or Josh Rosenthal ?
OR((Q7167157,P19,c(Q56061)), (Q6289314,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7167157
relation P19
action find
entity Q6289314
relation P19
type Q56061
{'OR': [['Q7167157', 'P19', {'concept': 'Q56061'}], ['Q6289314', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q7167157 property:P19 ?o } UNION { resource:Q6289314 property:P19 ?o } } . ?o rdf:type ontology:Q56061 }
Josh Rosenthal Percival Wilde
action filter_type
action union
action find
entity Percival Wilde
relation place of birth
action find
entity Josh Rosenthal
relation place of birth
type administrative territorial entity
{'OR': [['Percival Wilde', 'place of birth', {'concept': 'administrative territorial entity'}], ['Josh Rosenthal', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Percival_Wilde property:place_of_birth ?o } UNION { resource:Josh_Rosenthal property:place_of_birth ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3141 Q60
SYSTEM
Melbourne, New York City
Q3141 Q60
OR((Q7167157,P19,c(Q56061)), (Q6289314,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7167157
relation P19
action find
entity Q6289314
relation P19
type Q56061
[ANSWERS] are the birthplace of Percival Wilde or Josh Rosenthal
{'OR': [['Q7167157', 'P19', {'concept': 'Q56061'}], ['Q6289314', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q7167157 property:P19 ?o } UNION { resource:Q6289314 property:P19 ?o } } . ?o rdf:type ontology:Q56061 }
Melbourne New York City
Melbourne and New York City are the birthplace of Percival Wilde or Josh Rosenthal
Melbourne New York City
action filter_type
action union
action find
entity Percival Wilde
relation place of birth
action find
entity Josh Rosenthal
relation place of birth
type administrative territorial entity
{'OR': [['Percival Wilde', 'place of birth', {'concept': 'administrative territorial entity'}], ['Josh Rosenthal', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Percival_Wilde property:place_of_birth ?o } UNION { resource:Josh_Rosenthal property:place_of_birth ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3141 Q60
P138
Q2235308
USER
Which ship types come from those administrative territories ?
(c(Q2235308),P138,Q3141) (c(Q2235308),P138,Q60)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q2235308
[{'concept': 'Q2235308'}, 'P138', 'Q3141'] [{'concept': 'Q2235308'}, 'P138', 'Q60']
SELECT DISTINCT ?w WHERE { ?w property:P138 ?k . ?w rdf:type ontology:Q2235308 . VALUES ( ?k ) { ( resource:Q3141 ) ( resource:Q60 ) } }
Melbourne New York City
action filter_type
action find_reverse
entity prev_answer
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'Melbourne'] [{'concept': 'ship type'}, 'named after', 'New York City']
SELECT DISTINCT ?w WHERE { ?w property:named_after ?k . ?w rdf:type ontology:ship_type . VALUES ( ?k ) { ( resource:Melbourne ) ( resource:New_York_City ) } }
[]
ship type
Q744351 Q919768
SYSTEM
HMAS Melbourne, USS New York City
Q744351 Q919768
(c(Q2235308),P138,Q3141) (c(Q2235308),P138,Q60)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q2235308
[ANSWERS] come from those administrative territories
[{'concept': 'Q2235308'}, 'P138', 'Q3141'] [{'concept': 'Q2235308'}, 'P138', 'Q60']
SELECT DISTINCT ?w WHERE { ?w property:P138 ?k . ?w rdf:type ontology:Q2235308 . VALUES ( ?k ) { ( resource:Q3141 ) ( resource:Q60 ) } }
HMAS Melbourne USS New York City
HMAS Melbourne and USS New York City come from those administrative territories
HMAS Melbourne USS New York City
action filter_type
action find_reverse
entity prev_answer
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'Melbourne'] [{'concept': 'ship type'}, 'named after', 'New York City']
SELECT DISTINCT ?w WHERE { ?w property:named_after ?k . ?w rdf:type ontology:ship_type . VALUES ( ?k ) { ( resource:Melbourne ) ( resource:New_York_City ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q744351 Q919768
P138
Q56061
USER
Which administrative territories are the etymology of those ship types ?
(Q744351,P138,c(Q56061)) (Q919768,P138,c(Q56061))
action filter_type
action find
entity prev_answer
relation P138
type Q56061
['Q744351', 'P138', {'concept': 'Q56061'}] ['Q919768', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . VALUES ( ?d ) { ( resource:Q744351 ) ( resource:Q919768 ) } . ?d property:P138 ?y }
HMAS Melbourne USS New York City
action filter_type
action find
entity prev_answer
relation named after
type administrative territorial entity
['HMAS Melbourne', 'named after', {'concept': 'administrative territorial entity'}] ['USS New York City', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . VALUES ( ?d ) { ( resource:HMAS_Melbourne ) ( resource:USS_New_York_City ) } . ?d property:named_after ?y }
[]
administrative territorial entity
Q3141 Q60
SYSTEM
Melbourne, New York City
Q3141 Q60
(Q744351,P138,c(Q56061)) (Q919768,P138,c(Q56061))
action filter_type
action find
entity prev_answer
relation P138
type Q56061
[ANSWERS] are the etymology of those ship types
['Q744351', 'P138', {'concept': 'Q56061'}] ['Q919768', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . VALUES ( ?d ) { ( resource:Q744351 ) ( resource:Q919768 ) } . ?d property:P138 ?y }
Melbourne New York City
Melbourne and New York City are the etymology of those ship types
Melbourne New York City
action filter_type
action find
entity prev_answer
relation named after
type administrative territorial entity
['HMAS Melbourne', 'named after', {'concept': 'administrative territorial entity'}] ['USS New York City', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . VALUES ( ?d ) { ( resource:HMAS_Melbourne ) ( resource:USS_New_York_City ) } . ?d property:named_after ?y }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3141 Q60
P138
Q502895
USER
Which people are Melbourne and New York City named after ?
(Q3141,P138,c(Q502895)) (Q60,P138,c(Q502895))
action union
action filter_type
action find
entity Q3141
relation P138
type Q502895
action filter_type
action find
entity Q60
relation P138
type Q502895
['Q3141', 'P138', {'concept': 'Q502895'}] ['Q60', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { resource:Q60 property:P138 ?p . ?p rdf:type ontology:Q502895 } UNION { resource:Q3141 property:P138 ?p . ?p rdf:type ontology:Q502895 } }
Melbourne New York City
action union
action filter_type
action find
entity Melbourne
relation named after
type common name
action filter_type
action find
entity New York City
relation named after
type common name
['Melbourne', 'named after', {'concept': 'common name'}] ['New York City', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { resource:New_York_City property:named_after ?p . ?p rdf:type ontology:common_name } UNION { resource:Melbourne property:named_after ?p . ?p rdf:type ontology:common_name } }
[]
common name
Q312567 Q126188
SYSTEM
William Lamb, 2nd Viscount Melbourne, James VII and II
Q312567 Q126188
(Q3141,P138,c(Q502895)) (Q60,P138,c(Q502895))
action union
action filter_type
action find
entity Q3141
relation P138
type Q502895
action filter_type
action find
entity Q60
relation P138
type Q502895
Melbourne and New York City are named for [ANSWERS]
['Q3141', 'P138', {'concept': 'Q502895'}] ['Q60', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { resource:Q60 property:P138 ?p . ?p rdf:type ontology:Q502895 } UNION { resource:Q3141 property:P138 ?p . ?p rdf:type ontology:Q502895 } }
William Lamb, 2nd Viscount Melbourne James VII and II
Melbourne and New York City are named for William Lamb, 2nd Viscount Melbourne and James VII and II
William Lamb, 2nd Viscount Melbourne James VII and II
action union
action filter_type
action find
entity Melbourne
relation named after
type common name
action filter_type
action find
entity New York City
relation named after
type common name
['Melbourne', 'named after', {'concept': 'common name'}] ['New York City', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { resource:New_York_City property:named_after ?p . ?p rdf:type ontology:common_name } UNION { resource:Melbourne property:named_after ?p . ?p rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q312567 Q126188
P138
Q56061
USER
Which administrative territories are named after those people ?
(c(Q56061),P138,Q312567) (c(Q56061),P138,Q126188)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q56061
[{'concept': 'Q56061'}, 'P138', 'Q312567'] [{'concept': 'Q56061'}, 'P138', 'Q126188']
SELECT DISTINCT ?u WHERE { VALUES ( ?m ) { ( resource:Q312567 ) ( resource:Q126188 ) } . ?u property:P138 ?m . ?u rdf:type ontology:Q56061 }
William Lamb, 2nd Viscount Melbourne James VII and II
action filter_type
action find_reverse
entity prev_answer
relation named after
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'William Lamb, 2nd Viscount Melbourne'] [{'concept': 'administrative territorial entity'}, 'named after', 'James VII and II']
SELECT DISTINCT ?u WHERE { VALUES ( ?m ) { ( resource:William_Lamb,_2nd_Viscount_Melbourne ) ( resource:James_VII_and_II ) } . ?u property:named_after ?m . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3141 Q60
SYSTEM
Melbourne, New York City
Q3141 Q60
(c(Q56061),P138,Q312567) (c(Q56061),P138,Q126188)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q56061
[ANSWERS] are named after those people
[{'concept': 'Q56061'}, 'P138', 'Q312567'] [{'concept': 'Q56061'}, 'P138', 'Q126188']
SELECT DISTINCT ?u WHERE { VALUES ( ?m ) { ( resource:Q312567 ) ( resource:Q126188 ) } . ?u property:P138 ?m . ?u rdf:type ontology:Q56061 }
Melbourne New York City
Melbourne and New York City are named after those people
Melbourne New York City
action filter_type
action find_reverse
entity prev_answer
relation named after
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'William Lamb, 2nd Viscount Melbourne'] [{'concept': 'administrative territorial entity'}, 'named after', 'James VII and II']
SELECT DISTINCT ?u WHERE { VALUES ( ?m ) { ( resource:William_Lamb,_2nd_Viscount_Melbourne ) ( resource:James_VII_and_II ) } . ?u property:named_after ?m . ?u rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q312567
P921
Q191067
USER
Which article has that person as its main topic ?
(c(Q191067),P921,Q312567)
action filter_type
action find_reverse
entity Q312567
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q312567']
SELECT DISTINCT ?f WHERE { ?f property:P921 resource:Q312567 . ?f rdf:type ontology:Q191067 }
William Lamb, 2nd Viscount Melbourne
action filter_type
action find_reverse
entity William Lamb, 2nd Viscount Melbourne
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'William Lamb, 2nd Viscount Melbourne']
SELECT DISTINCT ?f WHERE { ?f property:main_subject resource:William_Lamb,_2nd_Viscount_Melbourne . ?f rdf:type ontology:article }
[]
article
Clarification for simple ques.
Q312567
SYSTEM
Did you mean William Lamb, 2nd Viscount Melbourne ?
Q3141 Q60
(c(Q191067),P921,Q3141) (c(Q191067),P921,Q60)
[ANSWER]
[{'concept': 'Q191067'}, 'P921', 'Q3141'] [{'concept': 'Q191067'}, 'P921', 'Q60']
SELECT DISTINCT ?f WHERE { ?f property:P921 resource:Q312567 . ?f rdf:type ontology:Q191067 }
Melbourne New York City
Did you mean William Lamb, 2nd Viscount Melbourne ?
William Lamb, 2nd Viscount Melbourne
[{'concept': 'article'}, 'main subject', 'Melbourne'] [{'concept': 'article'}, 'main subject', 'New York City']
SELECT DISTINCT ?f WHERE { ?f property:main_subject resource:William_Lamb,_2nd_Viscount_Melbourne . ?f rdf:type ontology:article }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q191067),P921,Q312567)
[{'concept': 'Q191067'}, 'P921', 'Q312567']
[{'concept': 'article'}, 'main subject', 'William Lamb, 2nd Viscount Melbourne']
[]
Q19090825
SYSTEM
Lamb, William (DNB00)
Q19090825
(c(Q191067),P921,Q312567)
action filter_type
action find_reverse
entity Q312567
relation P921
type Q191067
[ANSWER] has that person as its main topic
[{'concept': 'Q191067'}, 'P921', 'Q312567']
SELECT DISTINCT ?f WHERE { ?f property:P921 resource:Q312567 . ?f rdf:type ontology:Q191067 }
Lamb, William (DNB00)
Lamb, William (DNB00) has that person as its main topic
Lamb, William (DNB00)
action filter_type
action find_reverse
entity William Lamb, 2nd Viscount Melbourne
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'William Lamb, 2nd Viscount Melbourne']
SELECT DISTINCT ?f WHERE { ?f property:main_subject resource:William_Lamb,_2nd_Viscount_Melbourne . ?f rdf:type ontology:article }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q223393 Q191067
USER
How many literary genres are atleast 21 articles a portion of ?
(c(Q191067),P361,c(Q223393))
action count
action atleast
action find_reverse_tuple_counts
relation P361
type Q223393
type Q191067
value 21
[{'concept': 'Q191067'}, 'P361', {'concept': 'Q223393'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:P361 ?q . ?q rdf:type ontology:Q223393 . ?x rdf:type ontology:Q191067 } GROUP BY ?q } . FILTER ( ?r >= 21 ) }
action count
action atleast
action find_reverse_tuple_counts
relation part of
type literary genre
type article
value 21
[{'concept': 'article'}, 'part of', {'concept': 'literary genre'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:part_of ?q . ?q rdf:type ontology:literary_genre . ?x rdf:type ontology:article } GROUP BY ?q } . FILTER ( ?r >= 21 ) }
[]
literary genre article
SYSTEM
3
Q20089963 Q2041543 Q12912667
(c(Q191067),P361,c(Q223393))
action count
action atleast
action find_reverse_tuple_counts
relation P361
type Q223393
type Q191067
value 21
[ANSWER]
[{'concept': 'Q191067'}, 'P361', {'concept': 'Q223393'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:P361 ?q . ?q rdf:type ontology:Q223393 . ?x rdf:type ontology:Q191067 } GROUP BY ?q } . FILTER ( ?r >= 21 ) }
New International Encyclopedia (1902—05) Otto's encyclopedia Appletons' Cyclopædia of American Biography
3
action count
action atleast
action find_reverse_tuple_counts
relation part of
type literary genre
type article
value 21
[{'concept': 'article'}, 'part of', {'concept': 'literary genre'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:part_of ?q . ?q rdf:type ontology:literary_genre . ?x rdf:type ontology:article } GROUP BY ?q } . FILTER ( ?r >= 21 ) }
[]