Simple Question (Direct)
Simple Question
Q6555500
P19
Q56061
USER
Which administrative territory was Lionel Abel born at ?
(Q6555500,P19,c(Q56061))
action filter_type
action find
entity Q6555500
relation P19
type Q56061
['Q6555500', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q6555500 property:P19 ?r }
Lionel Abel
action filter_type
action find
entity Lionel Abel
relation place of birth
type administrative territorial entity
['Lionel Abel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Lionel_Abel property:place_of_birth ?r }
[]
administrative territorial entity
Q18419
SYSTEM
Brooklyn
Q18419
(Q6555500,P19,c(Q56061))
action filter_type
action find
entity Q6555500
relation P19
type Q56061
Lionel Abel was born to [ANSWER]
['Q6555500', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q6555500 property:P19 ?r }
Brooklyn
Lionel Abel was born to Brooklyn
Brooklyn
action filter_type
action find
entity Lionel Abel
relation place of birth
type administrative territorial entity
['Lionel Abel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Lionel_Abel property:place_of_birth ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6555500
P20
Q2983893
USER
Where did the demise of that person occur ?
(Q18419,P20,c(Q2983893))
action filter_type
action find
entity Q6555500
relation P20
type Q2983893
['Q18419', 'P20', {'concept': 'Q2983893'}]
SELECT DISTINCT ?i WHERE { resource:Q6555500 property:P20 ?i . ?i rdf:type ontology:Q2983893 }
Lionel Abel
action filter_type
action find
entity Lionel Abel
relation place of death
type urban district
['Brooklyn', 'place of death', {'concept': 'urban district'}]
SELECT DISTINCT ?i WHERE { resource:Lionel_Abel property:place_of_death ?i . ?i rdf:type ontology:urban_district }
[]
urban district
Q11299
SYSTEM
Manhattan
Q11299
(Q18419,P20,c(Q2983893))
action filter_type
action find
entity Q6555500
relation P20
type Q2983893
The demise of that person occurred in [ANSWER]
['Q18419', 'P20', {'concept': 'Q2983893'}]
SELECT DISTINCT ?i WHERE { resource:Q6555500 property:P20 ?i . ?i rdf:type ontology:Q2983893 }
Manhattan
The demise of that person occurred in Manhattan
Manhattan
action filter_type
action find
entity Lionel Abel
relation place of death
type urban district
['Brooklyn', 'place of death', {'concept': 'urban district'}]
SELECT DISTINCT ?i WHERE { resource:Lionel_Abel property:place_of_death ?i . ?i rdf:type ontology:urban_district }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11299
P206
Q355304
USER
Which watercourses are situated in the neighbourhood of that urban district ?
(Q11299,P206,c(Q355304))
action filter_type
action find
entity Q11299
relation P206
type Q355304
['Q11299', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?a WHERE { resource:Q11299 property:P206 ?a . ?a rdf:type ontology:Q355304 }
Manhattan
action filter_type
action find
entity Manhattan
relation located next to body of water
type watercourse
['Manhattan', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?a WHERE { resource:Manhattan property:located_next_to_body_of_water ?a . ?a rdf:type ontology:watercourse }
[]
watercourse
Q3140 Q597451
SYSTEM
Hudson River, Harlem River
Q3140 Q597451
(Q11299,P206,c(Q355304))
action filter_type
action find
entity Q11299
relation P206
type Q355304
[ANSWERS] are situated in the neighbourhood of that urban district
['Q11299', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?a WHERE { resource:Q11299 property:P206 ?a . ?a rdf:type ontology:Q355304 }
Hudson River Harlem River
Hudson River and Harlem River are situated in the neighbourhood of that urban district
Hudson River Harlem River
action filter_type
action find
entity Manhattan
relation located next to body of water
type watercourse
['Manhattan', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?a WHERE { resource:Manhattan property:located_next_to_body_of_water ?a . ?a rdf:type ontology:watercourse }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5738311
Q355304
USER
And how about Niemirów?
(Q5738311,P206,c(Q355304))
action filter_type
action find
entity Q5738311
relation P206
type Q355304
['Q5738311', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?k WHERE { resource:Q5738311 property:P206 ?k . ?k rdf:type ontology:Q355304 }
Niemirów
action filter_type
action find
entity Niemirów
relation located next to body of water
type watercourse
['Niemirów', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?k WHERE { resource:Niemirów property:located_next_to_body_of_water ?k . ?k rdf:type ontology:watercourse }
[]
watercourse
Q156237
SYSTEM
Western Bug
Q156237
(Q5738311,P206,c(Q355304))
action filter_type
action find
entity Q5738311
relation P206
type Q355304
[ANSWER]
['Q5738311', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?k WHERE { resource:Q5738311 property:P206 ?k . ?k rdf:type ontology:Q355304 }
Western Bug
Western Bug
action filter_type
action find
entity Niemirów
relation located next to body of water
type watercourse
['Niemirów', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?k WHERE { resource:Niemirów property:located_next_to_body_of_water ?k . ?k rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q156237 Q46
P30
Q2221906
USER
Is that watercourse a part of Europe ?
(Q156237,P30,Q46)
action is_in
entity Q46
action find
entity Q156237
relation P30
['Q156237', 'P30', 'Q46']
ASK WHERE { resource:Q156237 property:P30 resource:Q46 }
Western Bug Europe
action is_in
entity Europe
action find
entity Western Bug
relation continent
['Western Bug', 'continent', 'Europe']
ASK WHERE { resource:Western_Bug property:continent resource:Europe }
[]
geographic location
SYSTEM
YES
(Q156237,P30,Q46)
action is_in
entity Q46
action find
entity Q156237
relation P30
[ANSWER]
['Q156237', 'P30', 'Q46']
ASK WHERE { resource:Q156237 property:P30 resource:Q46 }
Yes
action is_in
entity Europe
action find
entity Western Bug
relation continent
['Western Bug', 'continent', 'Europe']
ASK WHERE { resource:Western_Bug property:continent resource:Europe }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q201729 Q5738311
P17
Q15617994
USER
Which administrative territories are Niemirów and Sanok situated in ?
AND((Q5738311,P17,c(Q15617994)), (Q201729,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5738311
relation P17
action find
entity Q201729
relation P17
type Q15617994
{'AND': [['Q5738311', 'P17', {'concept': 'Q15617994'}], ['Q201729', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { resource:Q5738311 property:P17 ?f . resource:Q201729 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Sanok Niemirów
action filter_type
action intersection
action find
entity Niemirów
relation country
action find
entity Sanok
relation country
type designation for an administrative territorial entity
{'AND': [['Niemirów', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sanok', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { resource:Niemirów property:country ?f . resource:Sanok property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
AND((Q5738311,P17,c(Q15617994)), (Q201729,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5738311
relation P17
action find
entity Q201729
relation P17
type Q15617994
Niemirów and Sanok are situated in [ANSWER]
{'AND': [['Q5738311', 'P17', {'concept': 'Q15617994'}], ['Q201729', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { resource:Q5738311 property:P17 ?f . resource:Q201729 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Poland
Niemirów and Sanok are situated in Poland
Poland
action filter_type
action intersection
action find
entity Niemirów
relation country
action find
entity Sanok
relation country
type designation for an administrative territorial entity
{'AND': [['Niemirów', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sanok', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { resource:Niemirów property:country ?f . resource:Sanok property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q37992
P361
Q82794 Q49447 Q355304
USER
How many watercourses are a component of greater number of geographic regions or world views than Cohoes Falls ?
(c(Q355304),P361,c(Q82794)|c(Q49447))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q355304
type Q82794
action find_tuple_counts
relation P361
type Q355304
type Q49447
action count
action filter_multi_types
action find
entity Q37992
relation P361
type Q82794
type Q49447
[{'concept': 'Q355304'}, 'P361', [{'concept': 'Q82794'}, {'concept': 'Q49447'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?y ) WHERE { { ?e rdf:type ontology:Q355304 . ?v rdf:type ontology:Q82794 . ?e property:P361 ?v } UNION { ?e property:P361 ?v . ?e rdf:type ontology:Q355304 . ?v rdf:type ontology:Q49447 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Q37992 property:P361 ?j . { ?j rdf:type ?p . VALUES ( ?p ) { ( ontology:Q82794 ) ( ontology:Q49447 ) } } } } . FILTER ( ?y > ?r ) }
Cohoes Falls
action count
action greater
action union
action find_tuple_counts
relation part of
type watercourse
type geographic region
action find_tuple_counts
relation part of
type watercourse
type world view
action count
action filter_multi_types
action find
entity Cohoes Falls
relation part of
type geographic region
type world view
[{'concept': 'watercourse'}, 'part of', [{'concept': 'geographic region'}, {'concept': 'world view'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?y ) WHERE { { ?e rdf:type ontology:watercourse . ?v rdf:type ontology:geographic_region . ?e property:part_of ?v } UNION { ?e property:part_of ?v . ?e rdf:type ontology:watercourse . ?v rdf:type ontology:world_view } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Cohoes_Falls property:part_of ?j . { ?j rdf:type ?p . VALUES ( ?p ) { ( ontology:geographic_region ) ( ontology:world_view ) } } } } . FILTER ( ?y > ?r ) }
[]
geographic region world view watercourse
SYSTEM
28
Q6373229 Q1322826 Q211089 Q1568711 Q3111632 Q941745 Q939218 Q129139 Q37620 Q3566505 Q4993580 Q60055 Q934455 Q211852 Q321043 Q118850 Q1153522 Q4980740 Q1382342 Q41986 Q1973608 Q839303 Q584 Q3320633 Q1359498 Q10604657 Q214874 Q426309
(c(Q355304),P361,c(Q82794)|c(Q49447))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q355304
type Q82794
action find_tuple_counts
relation P361
type Q355304
type Q49447
action count
action filter_multi_types
action find
entity Q37992
relation P361
type Q82794
type Q49447
[ANSWER]
[{'concept': 'Q355304'}, 'P361', [{'concept': 'Q82794'}, {'concept': 'Q49447'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?y ) WHERE { { ?e rdf:type ontology:Q355304 . ?v rdf:type ontology:Q82794 . ?e property:P361 ?v } UNION { ?e property:P361 ?v . ?e rdf:type ontology:Q355304 . ?v rdf:type ontology:Q49447 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Q37992 property:P361 ?j . { ?j rdf:type ?p . VALUES ( ?p ) { ( ontology:Q82794 ) ( ontology:Q49447 ) } } } } . FILTER ( ?y > ?r ) }
Dwa River Noi River Büyük Menderes River Mavroneri Goulaine Alfeios Cocytus Norrån Scheldt Selemnos Storelva Narew Ebola River Ionides Dornbirner Ach Chao Phraya River Nan River Brychon Acis Meuse Wieprza Khwae Noi River Rhine Mongala River Tha Chin River Wättingeströmmen Jhelum River Spercheios
28
action count
action greater
action union
action find_tuple_counts
relation part of
type watercourse
type geographic region
action find_tuple_counts
relation part of
type watercourse
type world view
action count
action filter_multi_types
action find
entity Cohoes Falls
relation part of
type geographic region
type world view
[{'concept': 'watercourse'}, 'part of', [{'concept': 'geographic region'}, {'concept': 'world view'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?y ) WHERE { { ?e rdf:type ontology:watercourse . ?v rdf:type ontology:geographic_region . ?e property:part_of ?v } UNION { ?e property:part_of ?v . ?e rdf:type ontology:watercourse . ?v rdf:type ontology:world_view } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Cohoes_Falls property:part_of ?j . { ?j rdf:type ?p . VALUES ( ?p ) { ( ontology:geographic_region ) ( ontology:world_view ) } } } } . FILTER ( ?y > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2967747
P361
Q82794 Q49447 Q355304
USER
And also tell me about Carbet Falls?
(c(Q355304),P361,c(Q82794)|c(Q49447))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q355304
type Q82794
action find_tuple_counts
relation P361
type Q355304
type Q49447
action count
action filter_multi_types
action find
entity Q2967747
relation P361
type Q82794
type Q49447
[{'concept': 'Q355304'}, 'P361', [{'concept': 'Q82794'}, {'concept': 'Q49447'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q2967747 property:P361 ?w . { VALUES ( ?a ) { ( ontology:Q49447 ) ( ontology:Q82794 ) } . ?w rdf:type ?a } } } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?p ) WHERE { { ?i property:P361 ?n . ?i rdf:type ontology:Q355304 . ?n rdf:type ontology:Q49447 } UNION { ?i property:P361 ?n . ?i rdf:type ontology:Q355304 . ?n rdf:type ontology:Q82794 } } GROUP BY ?i } }
Carbet Falls
action count
action greater
action union
action find_tuple_counts
relation part of
type watercourse
type geographic region
action find_tuple_counts
relation part of
type watercourse
type world view
action count
action filter_multi_types
action find
entity Carbet Falls
relation part of
type geographic region
type world view
[{'concept': 'watercourse'}, 'part of', [{'concept': 'geographic region'}, {'concept': 'world view'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Carbet_Falls property:part_of ?w . { VALUES ( ?a ) { ( ontology:world_view ) ( ontology:geographic_region ) } . ?w rdf:type ?a } } } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?p ) WHERE { { ?i property:part_of ?n . ?i rdf:type ontology:watercourse . ?n rdf:type ontology:world_view } UNION { ?i property:part_of ?n . ?i rdf:type ontology:watercourse . ?n rdf:type ontology:geographic_region } } GROUP BY ?i } }
[]
geographic region world view watercourse
SYSTEM
28
Q6373229 Q1322826 Q211089 Q1568711 Q3111632 Q941745 Q939218 Q129139 Q37620 Q3566505 Q4993580 Q60055 Q934455 Q211852 Q321043 Q118850 Q1153522 Q4980740 Q1382342 Q41986 Q1973608 Q839303 Q584 Q3320633 Q1359498 Q10604657 Q214874 Q426309
(c(Q355304),P361,c(Q82794)|c(Q49447))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q355304
type Q82794
action find_tuple_counts
relation P361
type Q355304
type Q49447
action count
action filter_multi_types
action find
entity Q2967747
relation P361
type Q82794
type Q49447
[ANSWER]
[{'concept': 'Q355304'}, 'P361', [{'concept': 'Q82794'}, {'concept': 'Q49447'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q2967747 property:P361 ?w . { VALUES ( ?a ) { ( ontology:Q49447 ) ( ontology:Q82794 ) } . ?w rdf:type ?a } } } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?p ) WHERE { { ?i property:P361 ?n . ?i rdf:type ontology:Q355304 . ?n rdf:type ontology:Q49447 } UNION { ?i property:P361 ?n . ?i rdf:type ontology:Q355304 . ?n rdf:type ontology:Q82794 } } GROUP BY ?i } }
Dwa River Noi River Büyük Menderes River Mavroneri Goulaine Alfeios Cocytus Norrån Scheldt Selemnos Storelva Narew Ebola River Ionides Dornbirner Ach Chao Phraya River Nan River Brychon Acis Meuse Wieprza Khwae Noi River Rhine Mongala River Tha Chin River Wättingeströmmen Jhelum River Spercheios
28
action count
action greater
action union
action find_tuple_counts
relation part of
type watercourse
type geographic region
action find_tuple_counts
relation part of
type watercourse
type world view
action count
action filter_multi_types
action find
entity Carbet Falls
relation part of
type geographic region
type world view
[{'concept': 'watercourse'}, 'part of', [{'concept': 'geographic region'}, {'concept': 'world view'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Carbet_Falls property:part_of ?w . { VALUES ( ?a ) { ( ontology:world_view ) ( ontology:geographic_region ) } . ?w rdf:type ?a } } } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?p ) WHERE { { ?i property:part_of ?n . ?i rdf:type ontology:watercourse . ?n rdf:type ontology:world_view } UNION { ?i property:part_of ?n . ?i rdf:type ontology:watercourse . ?n rdf:type ontology:geographic_region } } GROUP BY ?i } }
[]