Simple Question (Direct)
Simple Question
Q320992
P241
Q781132
USER
Which military branch did Frederick Adam belong to ?
(Q320992,P241,c(Q781132))
action filter_type
action find
entity Q320992
relation P241
type Q781132
['Q320992', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?i WHERE { resource:Q320992 property:P241 ?i . ?i rdf:type ontology:Q781132 }
Frederick Adam
action filter_type
action find
entity Frederick Adam
relation military branch
type military branch
['Frederick Adam', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?i WHERE { resource:Frederick_Adam property:military_branch ?i . ?i rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q320992,P241,c(Q781132))
action filter_type
action find
entity Q320992
relation P241
type Q781132
Frederick Adam belonged to [ANSWER]
['Q320992', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?i WHERE { resource:Q320992 property:P241 ?i . ?i rdf:type ontology:Q781132 }
British Army
Frederick Adam belonged to British Army
British Army
action filter_type
action find
entity Frederick Adam
relation military branch
type military branch
['Frederick Adam', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?i WHERE { resource:Frederick_Adam property:military_branch ?i . ?i rdf:type ontology:military_branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q320992
P921
Q191067
USER
Which article has Frederick Adam as its principal topic ?
(c(Q191067),P921,Q320992)
action filter_type
action find_reverse
entity Q320992
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q320992']
SELECT DISTINCT ?y WHERE { ?y property:P921 resource:Q320992 . ?y rdf:type ontology:Q191067 }
Frederick Adam
action filter_type
action find_reverse
entity Frederick Adam
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Frederick Adam']
SELECT DISTINCT ?y WHERE { ?y property:main_subject resource:Frederick_Adam . ?y rdf:type ontology:article }
[]
article
Q19029196
SYSTEM
Adam, Frederick (DNB00)
Q19029196
(c(Q191067),P921,Q320992)
action filter_type
action find_reverse
entity Q320992
relation P921
type Q191067
[ANSWER] has Frederick Adam as its principal topic
[{'concept': 'Q191067'}, 'P921', 'Q320992']
SELECT DISTINCT ?y WHERE { ?y property:P921 resource:Q320992 . ?y rdf:type ontology:Q191067 }
Adam, Frederick (DNB00)
Adam, Frederick (DNB00) has Frederick Adam as its principal topic
Adam, Frederick (DNB00)
action filter_type
action find_reverse
entity Frederick Adam
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Frederick Adam']
SELECT DISTINCT ?y WHERE { ?y property:main_subject resource:Frederick_Adam . ?y rdf:type ontology:article }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q320992
P607
Q350604
USER
What battle was Frederick Adam a part of ?
(Q320992,P607,c(Q350604))
action filter_type
action find
entity Q320992
relation P607
type Q350604
['Q320992', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?g WHERE { resource:Q320992 property:P607 ?g . ?g rdf:type ontology:Q350604 }
Frederick Adam
action filter_type
action find
entity Frederick Adam
relation conflict
type armed conflict
['Frederick Adam', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?g WHERE { resource:Frederick_Adam property:conflict ?g . ?g rdf:type ontology:armed_conflict }
[]
armed conflict
Q207318
SYSTEM
French Revolutionary Wars
Q207318
(Q320992,P607,c(Q350604))
action filter_type
action find
entity Q320992
relation P607
type Q350604
Frederick Adam was the [ANSWER]
['Q320992', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?g WHERE { resource:Q320992 property:P607 ?g . ?g rdf:type ontology:Q350604 }
French Revolutionary Wars
Frederick Adam was the French Revolutionary Wars
French Revolutionary Wars
action filter_type
action find
entity Frederick Adam
relation conflict
type armed conflict
['Frederick Adam', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?g WHERE { resource:Frederick_Adam property:conflict ?g . ?g rdf:type ontology:armed_conflict }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q320992
Q1190554
USER
And which event?
(Q320992,P607,c(Q1190554))
action filter_type
action find
entity Q320992
relation P607
type Q1190554
['Q320992', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?c WHERE { resource:Q320992 property:P607 ?c . ?c rdf:type ontology:Q1190554 }
Frederick Adam
action filter_type
action find
entity Frederick Adam
relation conflict
type event
['Frederick Adam', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?c WHERE { resource:Frederick_Adam property:conflict ?c . ?c rdf:type ontology:event }
[]
event
Q78994
SYSTEM
Napoleonic Wars
Q78994
(Q320992,P607,c(Q1190554))
action filter_type
action find
entity Q320992
relation P607
type Q1190554
[ANSWER]
['Q320992', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?c WHERE { resource:Q320992 property:P607 ?c . ?c rdf:type ontology:Q1190554 }
Napoleonic Wars
Napoleonic Wars
action filter_type
action find
entity Frederick Adam
relation conflict
type event
['Frederick Adam', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?c WHERE { resource:Frederick_Adam property:conflict ?c . ?c rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q320992
P20
Q56061
USER
Where did the expiration of Frederick Adam occur ?
(Q320992,P20,c(Q56061))
action filter_type
action find
entity Q320992
relation P20
type Q56061
['Q320992', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q320992 property:P20 ?a }
Frederick Adam
action filter_type
action find
entity Frederick Adam
relation place of death
type administrative territorial entity
['Frederick Adam', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Frederick_Adam property:place_of_death ?a }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q320992,P20,c(Q56061))
action filter_type
action find
entity Q320992
relation P20
type Q56061
The expiration of Frederick Adam occurred in [ANSWER]
['Q320992', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q320992 property:P20 ?a }
London
The expiration of Frederick Adam occurred in London
London
action filter_type
action find
entity Frederick Adam
relation place of death
type administrative territorial entity
['Frederick Adam', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Frederick_Adam property:place_of_death ?a }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5321838
Q56061
USER
And how about E. E. Speight?
(Q5321838,P20,c(Q56061))
action filter_type
action find
entity Q5321838
relation P20
type Q56061
['Q5321838', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q5321838 property:P20 ?p . ?p rdf:type ontology:Q56061 }
E. E. Speight
action filter_type
action find
entity E. E. Speight
relation place of death
type administrative territorial entity
['E. E. Speight', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:E._E._Speight property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q9888
SYSTEM
Ooty
Q9888
(Q5321838,P20,c(Q56061))
action filter_type
action find
entity Q5321838
relation P20
type Q56061
[ANSWER]
['Q5321838', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q5321838 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Ooty
Ooty
action filter_type
action find
entity E. E. Speight
relation place of death
type administrative territorial entity
['E. E. Speight', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:E._E._Speight property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P291
Q56061 Q21114848 Q571
USER
Which administrative territories were exactly 1 magazine genres and books published ?
(c(Q21114848)|c(Q571),P291,c(Q56061))
action equal
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
value 1
[[{'concept': 'Q21114848'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?h ) WHERE { { ?r property:P291 ?e . ?r rdf:type ontology:Q571 . ?e rdf:type ontology:Q56061 } UNION { ?r property:P291 ?e . ?e rdf:type ontology:Q56061 . ?r rdf:type ontology:Q21114848 } } GROUP BY ?e } . FILTER ( ?h = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
value 1
[[{'concept': 'magazine genre'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?h ) WHERE { { ?r property:place_of_publication ?e . ?r rdf:type ontology:book . ?e rdf:type ontology:administrative_territorial_entity } UNION { ?r property:place_of_publication ?e . ?e rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:magazine_genre } } GROUP BY ?e } . FILTER ( ?h = 1 ) }
[]
administrative territorial entity magazine genre book
Q8686 Q216 Q65
SYSTEM
Shanghai, Vilnius, Los Angeles
Q909146 Q2512312 Q501661 Q11974 Q10305 Q9920 Q3846 Q5836 Q209055 Q3561 Q739452 Q671288 Q334 Q16554 Q621 Q8686 Q994 Q1513 Q3130 Q192517 Q3033 Q1748 Q45412 Q40269 Q178093 Q2617448 Q37100 Q38022 Q1931927 Q33935 Q16567 Q1861 Q14314 Q5092 Q956 Q437 Q42735 Q242478 Q10282 Q26421 Q37995 Q6761 Q2634 Q3584 Q8717 Q3519 Q65 Q2028 Q61 Q470445 Q1352 Q8385 Q72259 Q19785 Q193367 Q128306 Q997170 Q580 Q585 Q2066 Q216 Q1348
(c(Q21114848)|c(Q571),P291,c(Q56061))
action equal
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
value 1
[ANSWERS] were exactly 1 magazine genres and books published
[[{'concept': 'Q21114848'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?h ) WHERE { { ?r property:P291 ?e . ?r rdf:type ontology:Q571 . ?e rdf:type ontology:Q56061 } UNION { ?r property:P291 ?e . ?e rdf:type ontology:Q56061 . ?r rdf:type ontology:Q21114848 } } GROUP BY ?e } . FILTER ( ?h = 1 ) }
Godalming Eppegem Schleswig Las Palmas de Gran Canaria Zaragoza Haarlem Minden Toledo Torquay Algiers Garden City Bend Singapore Denver Versailles Shanghai Tbilisi Nagpur Sydney Boulder Göttingen Copenhagen Coimbra Porto Alegre Poughkeepsie Edinburgh Auckland St. Louis Bracon Ash Tel Aviv Columbus Bangkok Santiago de Compostela Baltimore Beijing Ljubljana Olympia Levoča Pamplona Dordrecht Yangon Livorno Naples Nový Jičín Seville Bari Los Angeles Verona Washington, D.C. Prostějov Chennai Ostrava Portsmouth Harpenden Porvoo Denton Waterville Łódź Oslo Essen Vilnius Kolkata
Shanghai, Vilnius and Los Angeles were exactly 1 magazine genres and books published
Shanghai Vilnius Los Angeles
action equal
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
value 1
[[{'concept': 'magazine genre'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?h ) WHERE { { ?r property:place_of_publication ?e . ?r rdf:type ontology:book . ?e rdf:type ontology:administrative_territorial_entity } UNION { ?r property:place_of_publication ?e . ?e rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:magazine_genre } } GROUP BY ?e } . FILTER ( ?h = 1 ) }
[]