Simple Question (Direct)
Simple Question
Q2427895
P19
Q56061
USER
Which administrative territory was Kofi Mensah born at ?
(Q2427895,P19,c(Q56061))
action filter_type
action find
entity Q2427895
relation P19
type Q56061
['Q2427895', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q2427895 property:P19 ?p }
Kofi Mensah
action filter_type
action find
entity Kofi Mensah
relation place of birth
type administrative territorial entity
['Kofi Mensah', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Kofi_Mensah property:place_of_birth ?p }
[]
administrative territorial entity
Q406358
SYSTEM
Koforidua
Q406358
(Q2427895,P19,c(Q56061))
action filter_type
action find
entity Q2427895
relation P19
type Q56061
Kofi Mensah was born in [ANSWER]
['Q2427895', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q2427895 property:P19 ?p }
Koforidua
Kofi Mensah was born in Koforidua
Koforidua
action filter_type
action find
entity Kofi Mensah
relation place of birth
type administrative territorial entity
['Kofi Mensah', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Kofi_Mensah property:place_of_birth ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q406358
P17
Q15617994
USER
Which administrative territory does that administrative territory belong to ?
(Q406358,P17,c(Q15617994))
action filter_type
action find
entity Q406358
relation P17
type Q15617994
['Q406358', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q406358 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Koforidua
action filter_type
action find
entity Koforidua
relation country
type designation for an administrative territorial entity
['Koforidua', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Koforidua property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q117
SYSTEM
Ghana
Q117
(Q406358,P17,c(Q15617994))
action filter_type
action find
entity Q406358
relation P17
type Q15617994
That administrative territory belongs to [ANSWER]
['Q406358', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q406358 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Ghana
That administrative territory belongs to Ghana
Ghana
action filter_type
action find
entity Koforidua
relation country
type designation for an administrative territorial entity
['Koforidua', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Koforidua property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories share the border with that administrative territory ?
(Q117,P47,c(Q15617994))
action count
action filter_type
action find
entity Q117
relation P47
type Q15617994
['Q117', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { resource:Q117 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Ghana
relation shares border with
type designation for an administrative territorial entity
['Ghana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { resource:Ghana property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
3
Q965 Q1008 Q945
(Q117,P47,c(Q15617994))
action count
action filter_type
action find
entity Q117
relation P47
type Q15617994
[ANSWER]
['Q117', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { resource:Q117 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Burkina Faso Côte d'Ivoire Togo
3
action count
action filter_type
action find
entity Ghana
relation shares border with
type designation for an administrative territorial entity
['Ghana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { resource:Ghana property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q406358
P19 P21
Q502895
USER
Which people have birthplace at Koforidua and have the gender as male ?
AND((c(Q502895),P19,Q406358), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q406358
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q406358'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P21 resource:Q6581097 . ?o property:P19 resource:Q406358 }
male Koforidua
action filter_type
action intersection
action find_reverse
entity Koforidua
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Koforidua'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:gender resource:male . ?o property:place_of_birth resource:Koforidua }
[]
common name
Q5487625 Q2427895 Q1515001 Q20202651 Q6075860 Q1656024 Q7365429
SYSTEM
Frank Kamalu, Kofi Mensah, Gershon Koffie, Kojo Oppong Nkrumah, Isaac Amoako, Ibrahim Sunday, Ronaldo Awudu
Q5487625 Q2427895 Q1515001 Q20202651 Q6075860 Q1656024 Q7365429
AND((c(Q502895),P19,Q406358), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q406358
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have birthplace at Koforidua and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q406358'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P21 resource:Q6581097 . ?o property:P19 resource:Q406358 }
Frank Kamalu Kofi Mensah Gershon Koffie Kojo Oppong Nkrumah Isaac Amoako Ibrahim Sunday Ronaldo Awudu
Frank Kamalu, Kofi Mensah, Gershon Koffie, Kojo Oppong Nkrumah, Isaac Amoako, Ibrahim Sunday and Ronaldo Awudu have birthplace at Koforidua and have the gender as male
Frank Kamalu Kofi Mensah Gershon Koffie Kojo Oppong Nkrumah Isaac Amoako Ibrahim Sunday Ronaldo Awudu
action filter_type
action intersection
action find_reverse
entity Koforidua
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Koforidua'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:gender resource:male . ?o property:place_of_birth resource:Koforidua }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3885547 Q2427895
P641
Q349
USER
Which sports did Kofi Mensah or Oreste Didonè participate in ?
OR((Q2427895,P641,c(Q349)), (Q3885547,P641,c(Q349)))
action filter_type
action union
action find
entity Q2427895
relation P641
action find
entity Q3885547
relation P641
type Q349
{'OR': [['Q2427895', 'P641', {'concept': 'Q349'}], ['Q3885547', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q349 . { { resource:Q2427895 property:P641 ?m } UNION { resource:Q3885547 property:P641 ?m } } }
Oreste Didonè Kofi Mensah
action filter_type
action union
action find
entity Kofi Mensah
relation sport
action find
entity Oreste Didonè
relation sport
type sport
{'OR': [['Kofi Mensah', 'sport', {'concept': 'sport'}], ['Oreste Didonè', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sport . { { resource:Kofi_Mensah property:sport ?m } UNION { resource:Oreste_Didonè property:sport ?m } } }
[]
sport
Q2736
SYSTEM
association football
Q2736
OR((Q2427895,P641,c(Q349)), (Q3885547,P641,c(Q349)))
action filter_type
action union
action find
entity Q2427895
relation P641
action find
entity Q3885547
relation P641
type Q349
Kofi Mensah or Oreste Didonè participated in [ANSWER]
{'OR': [['Q2427895', 'P641', {'concept': 'Q349'}], ['Q3885547', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q349 . { { resource:Q2427895 property:P641 ?m } UNION { resource:Q3885547 property:P641 ?m } } }
association football
Kofi Mensah or Oreste Didonè participated in association football
association football
action filter_type
action union
action find
entity Kofi Mensah
relation sport
action find
entity Oreste Didonè
relation sport
type sport
{'OR': [['Kofi Mensah', 'sport', {'concept': 'sport'}], ['Oreste Didonè', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sport . { { resource:Kofi_Mensah property:sport ?m } UNION { resource:Oreste_Didonè property:sport ?m } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q117
P163
Q14660
USER
What is the name of flag associated with Ghana ?
(Q117,P163,c(Q14660))
action filter_type
action find
entity Q117
relation P163
type Q14660
['Q117', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?c WHERE { resource:Q117 property:P163 ?c . ?c rdf:type ontology:Q14660 }
Ghana
action filter_type
action find
entity Ghana
relation flag
type flag
['Ghana', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?c WHERE { resource:Ghana property:flag ?c . ?c rdf:type ontology:flag }
[]
flag
Q160676
SYSTEM
Flag of Ghana
Q160676
(Q117,P163,c(Q14660))
action filter_type
action find
entity Q117
relation P163
type Q14660
The name of flag associated with Ghana is the [ANSWER]
['Q117', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?c WHERE { resource:Q117 property:P163 ?c . ?c rdf:type ontology:Q14660 }
Flag of Ghana
The name of flag associated with Ghana is the Flag of Ghana
Flag of Ghana
action filter_type
action find
entity Ghana
relation flag
type flag
['Ghana', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?c WHERE { resource:Ghana property:flag ?c . ?c rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q117
P463
Q43229
USER
Which organizations were Ghana a member of ?
(Q117,P463,c(Q43229))
action filter_type
action find
entity Q117
relation P463
type Q43229
['Q117', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?v WHERE { resource:Q117 property:P463 ?v . ?v rdf:type ontology:Q43229 }
Ghana
action filter_type
action find
entity Ghana
relation member of
type organization
['Ghana', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?v WHERE { resource:Ghana property:member_of ?v . ?v rdf:type ontology:organization }
[]
organization
Q7825 Q191384 Q656801
SYSTEM
World Trade Organization, International Bank for Reconstruction and Development, International Finance Corporation
Q340195 Q191384 Q899770 Q656801 Q7825 Q827525
(Q117,P463,c(Q43229))
action filter_type
action find
entity Q117
relation P463
type Q43229
Ghana were the [ANSWERS]
['Q117', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?v WHERE { resource:Q117 property:P463 ?v . ?v rdf:type ontology:Q43229 }
African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation World Trade Organization International Development Association
Ghana were the World Trade Organization, International Bank for Reconstruction and Development and International Finance Corporation
World Trade Organization International Bank for Reconstruction and Development International Finance Corporation
action filter_type
action find
entity Ghana
relation member of
type organization
['Ghana', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?v WHERE { resource:Ghana property:member_of ?v . ?v rdf:type ontology:organization }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q117
Q180684
USER
And which conflict?
(Q117,P463,c(Q180684))
action filter_type
action find
entity Q117
relation P463
type Q180684
['Q117', 'P463', {'concept': 'Q180684'}]
SELECT DISTINCT ?s WHERE { resource:Q117 property:P463 ?s . ?s rdf:type ontology:Q180684 }
Ghana
action filter_type
action find
entity Ghana
relation member of
type conflict
['Ghana', 'member of', {'concept': 'conflict'}]
SELECT DISTINCT ?s WHERE { resource:Ghana property:member_of ?s . ?s rdf:type ontology:conflict }
[]
conflict
Q384535
SYSTEM
African Union – United Nations Hybrid Operation in Darfur
Q384535
(Q117,P463,c(Q180684))
action filter_type
action find
entity Q117
relation P463
type Q180684
[ANSWER]
['Q117', 'P463', {'concept': 'Q180684'}]
SELECT DISTINCT ?s WHERE { resource:Q117 property:P463 ?s . ?s rdf:type ontology:Q180684 }
African Union – United Nations Hybrid Operation in Darfur
African Union – United Nations Hybrid Operation in Darfur
action filter_type
action find
entity Ghana
relation member of
type conflict
['Ghana', 'member of', {'concept': 'conflict'}]
SELECT DISTINCT ?s WHERE { resource:Ghana property:member_of ?s . ?s rdf:type ontology:conflict }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q605977
P361
Q1190554 Q180684
USER
Which events are greater number of conflicts a part of than War of the Fourth Coalition ?
(c(Q180684),P361,c(Q1190554))
action greater
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q180684
action count
action filter_type
action find
entity Q605977
relation P361
type Q180684
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:P361 ?l . ?d rdf:type ontology:Q180684 . ?l rdf:type ontology:Q1190554 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:Q605977 property:P361 ?m . ?m rdf:type ontology:Q180684 } } . FILTER ( ?i > ?j ) }
War of the Fourth Coalition
action greater
action find_reverse_tuple_counts
relation part of
type event
type conflict
action count
action filter_type
action find
entity War of the Fourth Coalition
relation part of
type conflict
[{'concept': 'conflict'}, 'part of', {'concept': 'event'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:part_of ?l . ?d rdf:type ontology:conflict . ?l rdf:type ontology:event } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:War_of_the_Fourth_Coalition property:part_of ?m . ?m rdf:type ontology:conflict } } . FILTER ( ?i > ?j ) }
[]
event conflict
Q16470 Q83055 Q151340
SYSTEM
Normandy landings, Operation Barbarossa, Battle of France
Q15833607 Q1842866 Q16470 Q151340 Q482456 Q83055 Q2946372 Q210714 Q7885422 Q714274 Q216184 Q4825628 Q261776 Q1413732 Q604897 Q696823 Q692065 Q16918333
(c(Q180684),P361,c(Q1190554))
action greater
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q180684
action count
action filter_type
action find
entity Q605977
relation P361
type Q180684
[ANSWERS] are greater number of conflicts a part of than War of the Fourth Coalition
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:P361 ?l . ?d rdf:type ontology:Q180684 . ?l rdf:type ontology:Q1190554 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:Q605977 property:P361 ?m . ?m rdf:type ontology:Q180684 } } . FILTER ( ?i > ?j ) }
Annexation of Crimea by the Russian Federation Battle of Aleppo Normandy landings Battle of France Fall of Saigon Operation Barbarossa Northern Mali conflict 2011 military intervention in Libya Battle for Narva (1944) Allied advance from Paris to the Rhine Western Front (World War II) reprisal operations Battles of Rzhev Kashmir conflict Battle of Dien Bien Phu Battle for Caen Leningrad–Novgorod Offensive Ukrainian crisis
Normandy landings, Operation Barbarossa and Battle of France are greater number of conflicts a part of than War of the Fourth Coalition
Normandy landings Operation Barbarossa Battle of France
action greater
action find_reverse_tuple_counts
relation part of
type event
type conflict
action count
action filter_type
action find
entity War of the Fourth Coalition
relation part of
type conflict
[{'concept': 'conflict'}, 'part of', {'concept': 'event'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:part_of ?l . ?d rdf:type ontology:conflict . ?l rdf:type ontology:event } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:War_of_the_Fourth_Coalition property:part_of ?m . ?m rdf:type ontology:conflict } } . FILTER ( ?i > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q123210
P361
Q1190554 Q180684
USER
And how about Russo-Turkish War?
(c(Q180684),P361,c(Q1190554))
action greater
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q180684
action count
action filter_type
action find
entity Q123210
relation P361
type Q1190554
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q123210 property:P361 ?y . ?y rdf:type ontology:Q1190554 } } . FILTER ( ?x > ?p ) . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P361 ?f . ?k rdf:type ontology:Q180684 . ?f rdf:type ontology:Q1190554 } GROUP BY ?f } }
Russo-Turkish War
action greater
action find_reverse_tuple_counts
relation part of
type event
type conflict
action count
action filter_type
action find
entity Russo-Turkish War
relation part of
type event
[{'concept': 'conflict'}, 'part of', {'concept': 'event'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Russo-Turkish_War property:part_of ?y . ?y rdf:type ontology:event } } . FILTER ( ?x > ?p ) . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:part_of ?f . ?k rdf:type ontology:conflict . ?f rdf:type ontology:event } GROUP BY ?f } }
[]
event conflict
Q16470 Q83055 Q151340
SYSTEM
Normandy landings, Operation Barbarossa, Battle of France
Q15833607 Q1842866 Q16470 Q151340 Q482456 Q83055 Q2946372 Q210714 Q7885422 Q714274 Q216184 Q4825628 Q261776 Q1413732 Q604897 Q696823 Q692065 Q16918333
(c(Q180684),P361,c(Q1190554))
action greater
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q180684
action count
action filter_type
action find
entity Q123210
relation P361
type Q1190554
[ANSWERS]
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q123210 property:P361 ?y . ?y rdf:type ontology:Q1190554 } } . FILTER ( ?x > ?p ) . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P361 ?f . ?k rdf:type ontology:Q180684 . ?f rdf:type ontology:Q1190554 } GROUP BY ?f } }
Annexation of Crimea by the Russian Federation Battle of Aleppo Normandy landings Battle of France Fall of Saigon Operation Barbarossa Northern Mali conflict 2011 military intervention in Libya Battle for Narva (1944) Allied advance from Paris to the Rhine Western Front (World War II) reprisal operations Battles of Rzhev Kashmir conflict Battle of Dien Bien Phu Battle for Caen Leningrad–Novgorod Offensive Ukrainian crisis
Normandy landings Operation Barbarossa Battle of France
action greater
action find_reverse_tuple_counts
relation part of
type event
type conflict
action count
action filter_type
action find
entity Russo-Turkish War
relation part of
type event
[{'concept': 'conflict'}, 'part of', {'concept': 'event'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Russo-Turkish_War property:part_of ?y . ?y rdf:type ontology:event } } . FILTER ( ?x > ?p ) . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:part_of ?f . ?k rdf:type ontology:conflict . ?f rdf:type ontology:event } GROUP BY ?f } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q716750 Q151340
P361
Q1190554
USER
Which events are Battle of France and Battle of Maastricht a component of ?
AND((Q151340,P361,c(Q1190554)), (Q716750,P361,c(Q1190554)))
action filter_type
action intersection
action find
entity Q151340
relation P361
action find
entity Q716750
relation P361
type Q1190554
{'AND': [['Q151340', 'P361', {'concept': 'Q1190554'}], ['Q716750', 'P361', {'concept': 'Q1190554'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1190554 . resource:Q151340 property:P361 ?k . resource:Q716750 property:P361 ?k }
Battle of Maastricht Battle of France
action filter_type
action intersection
action find
entity Battle of France
relation part of
action find
entity Battle of Maastricht
relation part of
type event
{'AND': [['Battle of France', 'part of', {'concept': 'event'}], ['Battle of Maastricht', 'part of', {'concept': 'event'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:event . resource:Battle_of_France property:part_of ?k . resource:Battle_of_Maastricht property:part_of ?k }
[]
event
Q216184
SYSTEM
Western Front (World War II)
Q216184
AND((Q151340,P361,c(Q1190554)), (Q716750,P361,c(Q1190554)))
action filter_type
action intersection
action find
entity Q151340
relation P361
action find
entity Q716750
relation P361
type Q1190554
[ANSWER] is Battle of France and Battle of Maastricht a component of
{'AND': [['Q151340', 'P361', {'concept': 'Q1190554'}], ['Q716750', 'P361', {'concept': 'Q1190554'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1190554 . resource:Q151340 property:P361 ?k . resource:Q716750 property:P361 ?k }
Western Front (World War II)
Western Front (World War II) is Battle of France and Battle of Maastricht a component of
Western Front (World War II)
action filter_type
action intersection
action find
entity Battle of France
relation part of
action find
entity Battle of Maastricht
relation part of
type event
{'AND': [['Battle of France', 'part of', {'concept': 'event'}], ['Battle of Maastricht', 'part of', {'concept': 'event'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:event . resource:Battle_of_France property:part_of ?k . resource:Battle_of_Maastricht property:part_of ?k }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P607
Q502895 Q21506450
USER
How many people or military unit size classes were that event a part of ?
(c(Q502895),P607,Q216184) (c(Q21506450),P607,Q216184) (c(Q502895),P607,Q216184) (c(Q21506450),P607,Q216184)
action count
action union
action filter_type
action find_reverse
entity Q216184
relation P607
type Q502895
action filter_type
action find_reverse
entity Q216184
relation P607
type Q21506450
[{'concept': 'Q502895'}, 'P607', 'Q216184'] [{'concept': 'Q21506450'}, 'P607', 'Q216184'] [{'concept': 'Q502895'}, 'P607', 'Q216184'] [{'concept': 'Q21506450'}, 'P607', 'Q216184']
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { ?r property:P607 resource:Q216184 . ?r rdf:type ontology:Q502895 } UNION { ?r property:P607 resource:Q216184 . ?r rdf:type ontology:Q21506450 } }
action count
action union
action filter_type
action find_reverse
entity Western Front (World War II)
relation conflict
type common name
action filter_type
action find_reverse
entity Western Front (World War II)
relation conflict
type military unit size class
[{'concept': 'common name'}, 'conflict', 'Western Front (World War II)'] [{'concept': 'military unit size class'}, 'conflict', 'Western Front (World War II)'] [{'concept': 'common name'}, 'conflict', 'Western Front (World War II)'] [{'concept': 'military unit size class'}, 'conflict', 'Western Front (World War II)']
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { ?r property:conflict resource:Western_Front_(World_War_II) . ?r rdf:type ontology:common_name } UNION { ?r property:conflict resource:Western_Front_(World_War_II) . ?r rdf:type ontology:military_unit_size_class } }
[]
common name military unit size class
SYSTEM
28
Q5081662 Q5294643 Q377225 Q3059542 Q5240292 Q5503923 Q6384194 Q5650093 Q5700834 Q5503719 Q4775971 Q5534402 Q4354738 Q348719 Q2275560 Q7298838 Q5492744 Q5700678 Q6230404 Q172607 Q3181303 Q3477376 Q17058110 Q87614 Q5386985 Q949066 Q5650683 Q6793351
(c(Q502895),P607,Q216184) (c(Q21506450),P607,Q216184) (c(Q502895),P607,Q216184) (c(Q21506450),P607,Q216184)
action count
action union
action filter_type
action find_reverse
entity Q216184
relation P607
type Q502895
action filter_type
action find_reverse
entity Q216184
relation P607
type Q21506450
[ANSWER]
[{'concept': 'Q502895'}, 'P607', 'Q216184'] [{'concept': 'Q21506450'}, 'P607', 'Q216184'] [{'concept': 'Q502895'}, 'P607', 'Q216184'] [{'concept': 'Q21506450'}, 'P607', 'Q216184']
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { ?r property:P607 resource:Q216184 . ?r rdf:type ontology:Q502895 } UNION { ?r property:P607 resource:Q216184 . ?r rdf:type ontology:Q21506450 } }
Charles Piers Egerton Hall Donald Kingaby Ernst Düllberg Eugen-Ludwig Zweigart Heinz-Gerhard Vogt Friedrich Wachowiak Keith Chisholm Hans Götz Heinz Rökker Friedrich-Karl "Nasen" Müller Anton Resch Geoffrey Allard Franz Schall Eric Melrose Brown Gerhard Czernik Raymond Harries Franz Dörr Heinz Golinski John Dundas Tony Gaze John Cunningham 5th Canadian Division Halldor Espelid Karl Gratz Eric Lock Rudolf Rademacher Hans Röhrig Maurice Michael Stephens
28
action count
action union
action filter_type
action find_reverse
entity Western Front (World War II)
relation conflict
type common name
action filter_type
action find_reverse
entity Western Front (World War II)
relation conflict
type military unit size class
[{'concept': 'common name'}, 'conflict', 'Western Front (World War II)'] [{'concept': 'military unit size class'}, 'conflict', 'Western Front (World War II)'] [{'concept': 'common name'}, 'conflict', 'Western Front (World War II)'] [{'concept': 'military unit size class'}, 'conflict', 'Western Front (World War II)']
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { ?r property:conflict resource:Western_Front_(World_War_II) . ?r rdf:type ontology:common_name } UNION { ?r property:conflict resource:Western_Front_(World_War_II) . ?r rdf:type ontology:military_unit_size_class } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q117
P85
Q484692
USER
What is the national anthem of Ghana ?
(Q117,P85,c(Q484692))
action filter_type
action find
entity Q117
relation P85
type Q484692
['Q117', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q484692 . resource:Q117 property:P85 ?i }
Ghana
action filter_type
action find
entity Ghana
relation anthem
type hymn
['Ghana', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:hymn . resource:Ghana property:anthem ?i }
[]
hymn
Q273260
SYSTEM
God Bless Our Homeland Ghana
Q273260
(Q117,P85,c(Q484692))
action filter_type
action find
entity Q117
relation P85
type Q484692
The national anthem of Ghana is Ghana [ANSWER]
['Q117', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q484692 . resource:Q117 property:P85 ?i }
God Bless Our Homeland Ghana
The national anthem of Ghana is Ghana God Bless Our Homeland Ghana
God Bless Our Homeland Ghana
action filter_type
action find
entity Ghana
relation anthem
type hymn
['Ghana', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:hymn . resource:Ghana property:anthem ?i }
[]