Simple Question (Direct)
Simple Question
Q3132896
P69
Q2385804
USER
Which educational institution is Henry Lamb an alumni of ?
(Q3132896,P69,c(Q2385804))
action filter_type
action find
entity Q3132896
relation P69
type Q2385804
['Q3132896', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ?a WHERE { resource:Q3132896 property:P69 ?a . ?a rdf:type ontology:Q2385804 }
Henry Lamb
action filter_type
action find
entity Henry Lamb
relation educated at
type educational institution
['Henry Lamb', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ?a WHERE { resource:Henry_Lamb property:educated_at ?a . ?a rdf:type ontology:educational_institution }
[]
educational institution
Q6747415
SYSTEM
Manchester Grammar School
Q6747415
(Q3132896,P69,c(Q2385804))
action filter_type
action find
entity Q3132896
relation P69
type Q2385804
[ANSWER] is Henry Lamb an alumni of
['Q3132896', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ?a WHERE { resource:Q3132896 property:P69 ?a . ?a rdf:type ontology:Q2385804 }
Manchester Grammar School
Manchester Grammar School is Henry Lamb an alumni of
Manchester Grammar School
action filter_type
action find
entity Henry Lamb
relation educated at
type educational institution
['Henry Lamb', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ?a WHERE { resource:Henry_Lamb property:educated_at ?a . ?a rdf:type ontology:educational_institution }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3132896
P40
Q502895
USER
Who is an offspring of Henry Lamb ?
(Q3132896,P40,c(Q502895))
action filter_type
action find
entity Q3132896
relation P40
type Q502895
['Q3132896', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q3132896 property:P40 ?x . ?x rdf:type ontology:Q502895 }
Henry Lamb
action filter_type
action find
entity Henry Lamb
relation child
type common name
['Henry Lamb', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Henry_Lamb property:child ?x . ?x rdf:type ontology:common_name }
[]
common name
Q19847282
SYSTEM
Valentine Lamb
Q19847282
(Q3132896,P40,c(Q502895))
action filter_type
action find
entity Q3132896
relation P40
type Q502895
An offspring of Henry Lamb is the [ANSWER]
['Q3132896', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q3132896 property:P40 ?x . ?x rdf:type ontology:Q502895 }
Valentine Lamb
An offspring of Henry Lamb is the Valentine Lamb
Valentine Lamb
action filter_type
action find
entity Henry Lamb
relation child
type common name
['Henry Lamb', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Henry_Lamb property:child ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6747415
P17
Q15617994
USER
Which administrative territory is Manchester Grammar School situated in ?
(Q6747415,P17,c(Q15617994))
action filter_type
action find
entity Q6747415
relation P17
type Q15617994
['Q6747415', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q6747415 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Manchester Grammar School
action filter_type
action find
entity Manchester Grammar School
relation country
type designation for an administrative territorial entity
['Manchester Grammar School', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Manchester_Grammar_School property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6747415,P17,c(Q15617994))
action filter_type
action find
entity Q6747415
relation P17
type Q15617994
Manchester Grammar School is situated in [ANSWER]
['Q6747415', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q6747415 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
United Kingdom
Manchester Grammar School is situated in United Kingdom
United Kingdom
action filter_type
action find
entity Manchester Grammar School
relation country
type designation for an administrative territorial entity
['Manchester Grammar School', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Manchester_Grammar_School property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2088357 Q7725634
USER
How many administrative territories are the countries of origin of more number of musical ensembles and literary works than that administrative territory ?
(c(Q2088357)|c(Q7725634),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q2088357
type Q7725634
[[{'concept': 'Q2088357'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?w WHERE { { ?a property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q2088357 } UNION { ?a property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q7725634 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P495 resource:Q145 . { { ?g rdf:type ontology:Q2088357 } UNION { ?g rdf:type ontology:Q7725634 } } } } . FILTER ( ?p > ?u ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type musical ensemble
type literary work
[[{'concept': 'musical ensemble'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?w WHERE { { ?a property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:musical_ensemble } UNION { ?a property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:literary_work } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:country_of_origin resource:United_Kingdom . { { ?g rdf:type ontology:musical_ensemble } UNION { ?g rdf:type ontology:literary_work } } } } . FILTER ( ?p > ?u ) }
[]
designation for an administrative territorial entity musical ensemble literary work
SYSTEM
1
Q30
(c(Q2088357)|c(Q7725634),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q2088357
type Q7725634
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?w WHERE { { ?a property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q2088357 } UNION { ?a property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q7725634 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P495 resource:Q145 . { { ?g rdf:type ontology:Q2088357 } UNION { ?g rdf:type ontology:Q7725634 } } } } . FILTER ( ?p > ?u ) }
United States of America
1
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type musical ensemble
type literary work
[[{'concept': 'musical ensemble'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?w WHERE { { ?a property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:musical_ensemble } UNION { ?a property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:literary_work } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:country_of_origin resource:United_Kingdom . { { ?g rdf:type ontology:musical_ensemble } UNION { ?g rdf:type ontology:literary_work } } } } . FILTER ( ?p > ?u ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P710
Q1190554
USER
What event were United Kingdom a participant of ?
(c(Q1190554),P710,Q145)
action filter_type
action find_reverse
entity Q145
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q145']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1190554 . ?p property:P710 resource:Q145 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation participant
type event
[{'concept': 'event'}, 'participant', 'United Kingdom']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:event . ?p property:participant resource:United_Kingdom }
[]
event
Q218678 Q16470 Q1130507
SYSTEM
North African Campaign, Normandy landings, Hundred Days Offensive
Q4872830 Q4582489 Q2888122 Q1320675 Q4871802 Q4871801 Q13435464 Q3636553 Q1130507 Q218678 Q24467647 Q1402530 Q714223 Q838704 Q2237268 Q856168 Q8342069 Q171416 Q755955 Q4685618 Q16470 Q4872743 Q654374 Q376154 Q4930640 Q7510253 Q41894 Q3636355 Q3636251
(c(Q1190554),P710,Q145)
action filter_type
action find_reverse
entity Q145
relation P710
type Q1190554
[ANSWERS]
[{'concept': 'Q1190554'}, 'P710', 'Q145']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1190554 . ?p property:P710 resource:Q145 }
Battle of the Argenta Gap Battle of Mount Tumbledown Battle of Basra Battle of Havrincourt Battle of Mount Longdon Battle of Mount Harriet Invasion of Luxembourg Battle of Norfolk Hundred Days Offensive North African Campaign 2016 Sirte offensive Battle of 73 Easting Battle for Brest Battle of Durazzo Battle of Umm Qasr Pastry War Fisheries Case Battle of Trafalgar Battle of Copenhagen Adriatic Campaign of World War II Normandy landings Battle of Wireless Ridge Battle of Cambrai Battle of Copenhagen Bluff Cove Air Attacks Siege of Musa Qala Battle of New Orleans Battle of Broodseinde Battle of Wadi Al-Batin
What event were United Kingdom a participant of
North African Campaign Normandy landings Hundred Days Offensive
action filter_type
action find_reverse
entity United Kingdom
relation participant
type event
[{'concept': 'event'}, 'participant', 'United Kingdom']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:event . ?p property:participant resource:United_Kingdom }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16470
P361
Q1190554
USER
What is that one a part of ?
(Q16470,P361,c(Q1190554))
action filter_type
action find
entity Q16470
relation P361
type Q1190554
['Q16470', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1190554 . resource:Q16470 property:P361 ?f }
Normandy landings
action filter_type
action find
entity Normandy landings
relation part of
type event
['Normandy landings', 'part of', {'concept': 'event'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:event . resource:Normandy_landings property:part_of ?f }
[]
event
Clarification for simple ques.
Q16470
SYSTEM
Did you mean Normandy landings ?
Q218678 Q16470 Q1130507
(Q218678,P361,c(Q1190554)) (Q16470,P361,c(Q1190554)) (Q1130507,P361,c(Q1190554))
[ANSWER]
['Q218678', 'P361', {'concept': 'Q1190554'}] ['Q16470', 'P361', {'concept': 'Q1190554'}] ['Q1130507', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1190554 . resource:Q16470 property:P361 ?f }
North African Campaign Normandy landings Hundred Days Offensive
Did you mean Normandy landings ?
Normandy landings
['North African Campaign', 'part of', {'concept': 'event'}] ['Normandy landings', 'part of', {'concept': 'event'}] ['Hundred Days Offensive', 'part of', {'concept': 'event'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:event . resource:Normandy_landings property:part_of ?f }
[]
Simple Question (Coreferenced)
USER
Yes
(Q16470,P361,c(Q1190554))
['Q16470', 'P361', {'concept': 'Q1190554'}]
['Normandy landings', 'part of', {'concept': 'event'}]
[]
Q16471
SYSTEM
Invasion of Normandy
Q16471
(Q16470,P361,c(Q1190554))
action filter_type
action find
entity Q16470
relation P361
type Q1190554
That one a part of is the [ANSWER]
['Q16470', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1190554 . resource:Q16470 property:P361 ?f }
Invasion of Normandy
That one a part of is the Invasion of Normandy
Invasion of Normandy
action filter_type
action find
entity Normandy landings
relation part of
type event
['Normandy landings', 'part of', {'concept': 'event'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:event . resource:Normandy_landings property:part_of ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3132896
P607
Q198
USER
What battle was Henry Lamb a part of ?
(Q3132896,P607,c(Q198))
action filter_type
action find
entity Q3132896
relation P607
type Q198
['Q3132896', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q198 . resource:Q3132896 property:P607 ?y }
Henry Lamb
action filter_type
action find
entity Henry Lamb
relation conflict
type war
['Henry Lamb', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:war . resource:Henry_Lamb property:conflict ?y }
[]
war
Q361
SYSTEM
World War I
Q361
(Q3132896,P607,c(Q198))
action filter_type
action find
entity Q3132896
relation P607
type Q198
What battle was Henry Lamb a part of
['Q3132896', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q198 . resource:Q3132896 property:P607 ?y }
World War I
What battle was Henry Lamb a part of
World War I
action filter_type
action find
entity Henry Lamb
relation conflict
type war
['Henry Lamb', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:war . resource:Henry_Lamb property:conflict ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q361
P1196
Q502895
USER
Which people died as that war ?
(c(Q502895),P1196,Q361)
action filter_type
action find_reverse
entity Q361
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q361']
SELECT DISTINCT ?z WHERE { ?z property:P1196 resource:Q361 . ?z rdf:type ontology:Q502895 }
World War I
action filter_type
action find_reverse
entity World War I
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'World War I']
SELECT DISTINCT ?z WHERE { ?z property:manner_of_death resource:World_War_I . ?z rdf:type ontology:common_name }
[]
common name
Q20897950 Q20539063
SYSTEM
Georges Peignot, Marcel Casadesus
Q20897950 Q20539063
(c(Q502895),P1196,Q361)
action filter_type
action find_reverse
entity Q361
relation P1196
type Q502895
[ANSWERS] died as that war
[{'concept': 'Q502895'}, 'P1196', 'Q361']
SELECT DISTINCT ?z WHERE { ?z property:P1196 resource:Q361 . ?z rdf:type ontology:Q502895 }
Georges Peignot Marcel Casadesus
Georges Peignot and Marcel Casadesus died as that war
Georges Peignot Marcel Casadesus
action filter_type
action find_reverse
entity World War I
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'World War I']
SELECT DISTINCT ?z WHERE { ?z property:manner_of_death resource:World_War_I . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q361
P2348
Q7275
USER
What happened in the historical era of World War I ?
(c(Q7275),P2348,Q361)
action filter_type
action find_reverse
entity Q361
relation P2348
type Q7275
[{'concept': 'Q7275'}, 'P2348', 'Q361']
SELECT DISTINCT ?i WHERE { ?i property:P2348 resource:Q361 . ?i rdf:type ontology:Q7275 }
World War I
action filter_type
action find_reverse
entity World War I
relation period
type state
[{'concept': 'state'}, 'period', 'World War I']
SELECT DISTINCT ?i WHERE { ?i property:period resource:World_War_I . ?i rdf:type ontology:state }
[]
state
Q696908
SYSTEM
Kingdom of Poland
Q696908
(c(Q7275),P2348,Q361)
action filter_type
action find_reverse
entity Q361
relation P2348
type Q7275
[ANSWER] happened in the historical era of World War I
[{'concept': 'Q7275'}, 'P2348', 'Q361']
SELECT DISTINCT ?i WHERE { ?i property:P2348 resource:Q361 . ?i rdf:type ontology:Q7275 }
Kingdom of Poland
Kingdom of Poland happened in the historical era of World War I
Kingdom of Poland
action filter_type
action find_reverse
entity World War I
relation period
type state
[{'concept': 'state'}, 'period', 'World War I']
SELECT DISTINCT ?i WHERE { ?i property:period resource:World_War_I . ?i rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q361
P793
Q502895
USER
Which people have that war as a significant associated event ?
(c(Q502895),P793,Q696908)
action filter_type
action find_reverse
entity Q361
relation P793
type Q502895
[{'concept': 'Q502895'}, 'P793', 'Q696908']
SELECT DISTINCT ?g WHERE { ?g property:P793 resource:Q361 . ?g rdf:type ontology:Q502895 }
World War I
action filter_type
action find_reverse
entity World War I
relation significant event
type common name
[{'concept': 'common name'}, 'significant event', 'Kingdom of Poland']
SELECT DISTINCT ?g WHERE { ?g property:significant_event resource:World_War_I . ?g rdf:type ontology:common_name }
[]
common name
Q19287605 Q19960013
SYSTEM
Karl Erich Hupka, Victor Kaluza
Q19287605 Q19960013
(c(Q502895),P793,Q696908)
action filter_type
action find_reverse
entity Q361
relation P793
type Q502895
[ANSWERS] have that war as a significant associated event
[{'concept': 'Q502895'}, 'P793', 'Q696908']
SELECT DISTINCT ?g WHERE { ?g property:P793 resource:Q361 . ?g rdf:type ontology:Q502895 }
Karl Erich Hupka Victor Kaluza
Karl Erich Hupka and Victor Kaluza have that war as a significant associated event
Karl Erich Hupka Victor Kaluza
action filter_type
action find_reverse
entity World War I
relation significant event
type common name
[{'concept': 'common name'}, 'significant event', 'Kingdom of Poland']
SELECT DISTINCT ?g WHERE { ?g property:significant_event resource:World_War_I . ?g rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2761147
P180
Q1190554 Q15709879 Q3305213
USER
How many events are expressed in more number of artwork series and paintings than meeting ?
(c(Q15709879)|c(Q3305213),P180,c(Q1190554))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q2761147
relation P180
type Q15709879
type Q3305213
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?q ) WHERE { VALUES ( ?d ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?h rdf:type ?d } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P180 resource:Q2761147 . { { ?t rdf:type ontology:Q15709879 } UNION { ?t rdf:type ontology:Q3305213 } } } } . FILTER ( ?q > ?l ) }
meeting
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type event
type artwork series
action find_reverse_tuple_counts
relation depicts
type event
type painting
action count
action filter_multi_types
action find_reverse
entity meeting
relation depicts
type artwork series
type painting
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?q ) WHERE { VALUES ( ?d ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?h rdf:type ?d } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:depicts resource:meeting . { { ?t rdf:type ontology:artwork_series } UNION { ?t rdf:type ontology:painting } } } } . FILTER ( ?q > ?l ) }
[]
event artwork series painting
SYSTEM
12
Q132241 Q168983 Q124734 Q1577800 Q334029 Q51634 Q7561 Q2750241 Q808132 Q650711 Q3030248 Q2259031
(c(Q15709879)|c(Q3305213),P180,c(Q1190554))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q2761147
relation P180
type Q15709879
type Q3305213
[ANSWER]
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?q ) WHERE { VALUES ( ?d ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?h rdf:type ?d } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P180 resource:Q2761147 . { { ?t rdf:type ontology:Q15709879 } UNION { ?t rdf:type ontology:Q3305213 } } } } . FILTER ( ?q > ?l ) }
festival conflagration rebellion Battle of Racławice Battle of Bunker Hill arrest of Jesus snow Public nudity barefoot combat discussion Battle of Cascina
12
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type event
type artwork series
action find_reverse_tuple_counts
relation depicts
type event
type painting
action count
action filter_multi_types
action find_reverse
entity meeting
relation depicts
type artwork series
type painting
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?q ) WHERE { VALUES ( ?d ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?h rdf:type ?d } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:depicts resource:meeting . { { ?t rdf:type ontology:artwork_series } UNION { ?t rdf:type ontology:painting } } } } . FILTER ( ?q > ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q311726
P180
Q1190554 Q15709879 Q3305213
USER
And what about Battle of the Plains of Abraham?
(c(Q15709879)|c(Q3305213),P180,c(Q1190554))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q311726
relation P180
type Q15709879
type Q3305213
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) ?z WHERE { { ?v property:P180 ?z . ?z rdf:type ontology:Q1190554 . ?v rdf:type ontology:Q3305213 } UNION { ?v property:P180 ?z . ?z rdf:type ontology:Q1190554 . ?v rdf:type ontology:Q15709879 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P180 resource:Q311726 . { ?p rdf:type ?r . VALUES ( ?r ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } } } } . FILTER ( ?b > ?o ) }
Battle of the Plains of Abraham
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type event
type artwork series
action find_reverse_tuple_counts
relation depicts
type event
type painting
action count
action filter_multi_types
action find_reverse
entity Battle of the Plains of Abraham
relation depicts
type artwork series
type painting
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) ?z WHERE { { ?v property:depicts ?z . ?z rdf:type ontology:event . ?v rdf:type ontology:painting } UNION { ?v property:depicts ?z . ?z rdf:type ontology:event . ?v rdf:type ontology:artwork_series } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:depicts resource:Battle_of_the_Plains_of_Abraham . { ?p rdf:type ?r . VALUES ( ?r ) { ( ontology:painting ) ( ontology:artwork_series ) } } } } . FILTER ( ?b > ?o ) }
[]
event artwork series painting
SYSTEM
12
Q132241 Q168983 Q124734 Q1577800 Q334029 Q51634 Q7561 Q2750241 Q808132 Q650711 Q3030248 Q2259031
(c(Q15709879)|c(Q3305213),P180,c(Q1190554))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q311726
relation P180
type Q15709879
type Q3305213
[ANSWER]
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) ?z WHERE { { ?v property:P180 ?z . ?z rdf:type ontology:Q1190554 . ?v rdf:type ontology:Q3305213 } UNION { ?v property:P180 ?z . ?z rdf:type ontology:Q1190554 . ?v rdf:type ontology:Q15709879 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P180 resource:Q311726 . { ?p rdf:type ?r . VALUES ( ?r ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } } } } . FILTER ( ?b > ?o ) }
festival conflagration rebellion Battle of Racławice Battle of Bunker Hill arrest of Jesus snow Public nudity barefoot combat discussion Battle of Cascina
12
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type event
type artwork series
action find_reverse_tuple_counts
relation depicts
type event
type painting
action count
action filter_multi_types
action find_reverse
entity Battle of the Plains of Abraham
relation depicts
type artwork series
type painting
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) ?z WHERE { { ?v property:depicts ?z . ?z rdf:type ontology:event . ?v rdf:type ontology:painting } UNION { ?v property:depicts ?z . ?z rdf:type ontology:event . ?v rdf:type ontology:artwork_series } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:depicts resource:Battle_of_the_Plains_of_Abraham . { ?p rdf:type ?r . VALUES ( ?r ) { ( ontology:painting ) ( ontology:artwork_series ) } } } } . FILTER ( ?b > ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19287605
P22
Q502895
USER
Who has Karl Erich Hupka as a father ?
(c(Q502895),P22,Q19287605)
action filter_type
action find_reverse
entity Q19287605
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q19287605']
SELECT DISTINCT ?p WHERE { ?p property:P22 resource:Q19287605 . ?p rdf:type ontology:Q502895 }
Karl Erich Hupka
action filter_type
action find_reverse
entity Karl Erich Hupka
relation father
type common name
[{'concept': 'common name'}, 'father', 'Karl Erich Hupka']
SELECT DISTINCT ?p WHERE { ?p property:father resource:Karl_Erich_Hupka . ?p rdf:type ontology:common_name }
[]
common name
Q84942
SYSTEM
Herbert Hupka
Q84942
(c(Q502895),P22,Q19287605)
action filter_type
action find_reverse
entity Q19287605
relation P22
type Q502895
[ANSWER] has Karl Erich Hupka as a father
[{'concept': 'Q502895'}, 'P22', 'Q19287605']
SELECT DISTINCT ?p WHERE { ?p property:P22 resource:Q19287605 . ?p rdf:type ontology:Q502895 }
Herbert Hupka
Herbert Hupka has Karl Erich Hupka as a father
Herbert Hupka
action filter_type
action find_reverse
entity Karl Erich Hupka
relation father
type common name
[{'concept': 'common name'}, 'father', 'Karl Erich Hupka']
SELECT DISTINCT ?p WHERE { ?p property:father resource:Karl_Erich_Hupka . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19287605
P27
Q7275
USER
Which state is Karl Erich Hupka a civilian of ?
(Q19287605,P27,c(Q7275))
action filter_type
action find
entity Q19287605
relation P27
type Q7275
['Q19287605', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q7275 . resource:Q19287605 property:P27 ?e }
Karl Erich Hupka
action filter_type
action find
entity Karl Erich Hupka
relation country of citizenship
type state
['Karl Erich Hupka', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:state . resource:Karl_Erich_Hupka property:country_of_citizenship ?e }
[]
state
Q38872
SYSTEM
Prussia
Q38872
(Q19287605,P27,c(Q7275))
action filter_type
action find
entity Q19287605
relation P27
type Q7275
The [ANSWER] is Karl Erich Hupka a civilian of
['Q19287605', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q7275 . resource:Q19287605 property:P27 ?e }
Prussia
The Prussia is Karl Erich Hupka a civilian of
Prussia
action filter_type
action find
entity Karl Erich Hupka
relation country of citizenship
type state
['Karl Erich Hupka', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:state . resource:Karl_Erich_Hupka property:country_of_citizenship ?e }
[]