Simple Question (Direct)
Simple Question
Q5734221
P27
Q1048835
USER
Which political territories are Herbert Gilles Watson an inhabitant of ?
(Q5734221,P27,c(Q1048835))
action filter_type
action find
entity Q5734221
relation P27
type Q1048835
['Q5734221', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q5734221 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Herbert Gilles Watson
action filter_type
action find
entity Herbert Gilles Watson
relation country of citizenship
type political territorial entity
['Herbert Gilles Watson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Herbert_Gilles_Watson property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q408
SYSTEM
New Zealand, Australia
Q664 Q408
(Q5734221,P27,c(Q1048835))
action filter_type
action find
entity Q5734221
relation P27
type Q1048835
[ANSWERS] are Herbert Gilles Watson an inhabitant of
['Q5734221', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q5734221 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
New Zealand Australia
New Zealand and Australia are Herbert Gilles Watson an inhabitant of
New Zealand Australia
action filter_type
action find
entity Herbert Gilles Watson
relation country of citizenship
type political territorial entity
['Herbert Gilles Watson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Herbert_Gilles_Watson property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q408
P710
Q1190554
USER
Which events did that political territory participate in ?
(c(Q1190554),P710,Q408)
action filter_type
action find_reverse
entity Q408
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q408']
SELECT DISTINCT ?s WHERE { ?s property:P710 resource:Q408 . ?s rdf:type ontology:Q1190554 }
Australia
action filter_type
action find_reverse
entity Australia
relation participant
type event
[{'concept': 'event'}, 'participant', 'Australia']
SELECT DISTINCT ?s WHERE { ?s property:participant resource:Australia . ?s rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q408
SYSTEM
Did you mean Australia ?
Q664 Q408
(c(Q1190554),P710,Q664) (c(Q1190554),P710,Q408)
[ANSWER]
[{'concept': 'Q1190554'}, 'P710', 'Q664'] [{'concept': 'Q1190554'}, 'P710', 'Q408']
SELECT DISTINCT ?s WHERE { ?s property:P710 resource:Q408 . ?s rdf:type ontology:Q1190554 }
New Zealand Australia
Did you mean Australia ?
Australia
[{'concept': 'event'}, 'participant', 'New Zealand'] [{'concept': 'event'}, 'participant', 'Australia']
SELECT DISTINCT ?s WHERE { ?s property:participant resource:Australia . ?s rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1190554),P710,Q408)
[{'concept': 'Q1190554'}, 'P710', 'Q408']
[{'concept': 'event'}, 'participant', 'Australia']
[]
Q3636355 Q218678 Q16470
SYSTEM
Battle of Broodseinde, North African Campaign, Normandy landings
Q1934591 Q16470 Q620215 Q218678 Q4871421 Q3636355
(c(Q1190554),P710,Q408)
action filter_type
action find_reverse
entity Q408
relation P710
type Q1190554
That political territory participated in [ANSWERS]
[{'concept': 'Q1190554'}, 'P710', 'Q408']
SELECT DISTINCT ?s WHERE { ?s property:P710 resource:Q408 . ?s rdf:type ontology:Q1190554 }
Battle of North Borneo Normandy landings Battle of Mont Saint-Quentin North African Campaign Battle of Khaz Oruzgan Battle of Broodseinde
That political territory participated in Battle of Broodseinde, North African Campaign and Normandy landings
Battle of Broodseinde North African Campaign Normandy landings
action filter_type
action find_reverse
entity Australia
relation participant
type event
[{'concept': 'event'}, 'participant', 'Australia']
SELECT DISTINCT ?s WHERE { ?s property:participant resource:Australia . ?s rdf:type ontology:event }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3636355
P607
Q502895
USER
Which person was that event a part of ?
(c(Q502895),P607,Q3636355)
action filter_type
action find_reverse
entity Q3636355
relation P607
type Q502895
[{'concept': 'Q502895'}, 'P607', 'Q3636355']
SELECT DISTINCT ?y WHERE { ?y property:P607 resource:Q3636355 . ?y rdf:type ontology:Q502895 }
Battle of Broodseinde
action filter_type
action find_reverse
entity Battle of Broodseinde
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Battle of Broodseinde']
SELECT DISTINCT ?y WHERE { ?y property:conflict resource:Battle_of_Broodseinde . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q16470
SYSTEM
Did you mean Normandy landings ?
Q3636355 Q218678 Q16470
(c(Q502895),P607,Q3636355) (c(Q502895),P607,Q218678) (c(Q502895),P607,Q16470)
[ANSWER]
[{'concept': 'Q502895'}, 'P607', 'Q3636355'] [{'concept': 'Q502895'}, 'P607', 'Q218678'] [{'concept': 'Q502895'}, 'P607', 'Q16470']
SELECT DISTINCT ?y WHERE { ?y property:P607 resource:Q3636355 . ?y rdf:type ontology:Q502895 }
Battle of Broodseinde North African Campaign Normandy landings
Did you mean Normandy landings ?
Normandy landings
[{'concept': 'common name'}, 'conflict', 'Battle of Broodseinde'] [{'concept': 'common name'}, 'conflict', 'North African Campaign'] [{'concept': 'common name'}, 'conflict', 'Normandy landings']
SELECT DISTINCT ?y WHERE { ?y property:conflict resource:Battle_of_Broodseinde . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Battle of Broodseinde. Could you tell me the answer for that?
(c(Q502895),P607,Q3636355)
Q3636355
[{'concept': 'Q502895'}, 'P607', 'Q3636355']
[{'concept': 'common name'}, 'conflict', 'Battle of Broodseinde']
[]
Q2731333
SYSTEM
John Monash
Q2731333
(c(Q502895),P607,Q3636355)
action filter_type
action find_reverse
entity Q3636355
relation P607
type Q502895
[ANSWER] was that event a part of
[{'concept': 'Q502895'}, 'P607', 'Q3636355']
SELECT DISTINCT ?y WHERE { ?y property:P607 resource:Q3636355 . ?y rdf:type ontology:Q502895 }
John Monash
John Monash was that event a part of
John Monash
action filter_type
action find_reverse
entity Battle of Broodseinde
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Battle of Broodseinde']
SELECT DISTINCT ?y WHERE { ?y property:conflict resource:Battle_of_Broodseinde . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q484692 Q7725634 Q1048835
USER
How many political territories have an anthem named exactly 2 hymns and literary works ?
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action count
action equal
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
value 2
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?u ) WHERE { VALUES ( ?a ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?m rdf:type ?a } GROUP BY ?q } . FILTER ( ?u = 2 ) }
action count
action equal
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
value 2
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?u ) WHERE { VALUES ( ?a ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?m rdf:type ?a } GROUP BY ?q } . FILTER ( ?u = 2 ) }
[]
hymn literary work political territorial entity
SYSTEM
5
Q769 Q766 Q781 Q35 Q408
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action count
action equal
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
value 2
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?u ) WHERE { VALUES ( ?a ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?m rdf:type ?a } GROUP BY ?q } . FILTER ( ?u = 2 ) }
Grenada Jamaica Antigua and Barbuda Denmark Australia
5
action count
action equal
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
value 2
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?u ) WHERE { VALUES ( ?a ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?m rdf:type ?a } GROUP BY ?q } . FILTER ( ?u = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q408
P463
Q484652 Q874405
USER
How many international organizations and social groups were Australia a member of ?
(Q408,P463,c(Q484652)) (Q408,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q408
relation P463
type Q484652
action filter_type
action find
entity Q408
relation P463
type Q874405
['Q408', 'P463', {'concept': 'Q484652'}] ['Q408', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { VALUES ( ?l ) { ( ontology:Q874405 ) ( ontology:Q484652 ) } . ?k rdf:type ?l }
Australia
action count
action union
action filter_type
action find
entity Australia
relation member of
type international organization
action filter_type
action find
entity Australia
relation member of
type social group
['Australia', 'member of', {'concept': 'international organization'}] ['Australia', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { VALUES ( ?l ) { ( ontology:social_group ) ( ontology:international_organization ) } . ?k rdf:type ?l }
[]
international organization social group
SYSTEM
6 international organizations and 2 social groups
Q782942 Q295875 Q7768 Q1065 Q7785 Q19771 Q188822 Q1043527
(Q408,P463,c(Q484652)) (Q408,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q408
relation P463
type Q484652
action filter_type
action find
entity Q408
relation P463
type Q874405
[ANSWER]
['Q408', 'P463', {'concept': 'Q484652'}] ['Q408', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { VALUES ( ?l ) { ( ontology:Q874405 ) ( ontology:Q484652 ) } . ?k rdf:type ?l }
Australia Group ANZUS ASEAN United Nations Commonwealth of Nations G20 Asian Development Bank Multilateral Investment Guarantee Agency
6 international organizations and 2 social groups
action count
action union
action filter_type
action find
entity Australia
relation member of
type international organization
action filter_type
action find
entity Australia
relation member of
type social group
['Australia', 'member of', {'concept': 'international organization'}] ['Australia', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { VALUES ( ?l ) { ( ontology:social_group ) ( ontology:international_organization ) } . ?k rdf:type ?l }
[]
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 ?s WHERE { ?s property:P2348 resource:Q361 . ?s 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 ?s WHERE { ?s property:period resource:World_War_I . ?s 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 ?s WHERE { ?s property:P2348 resource:Q361 . ?s 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 ?s WHERE { ?s property:period resource:World_War_I . ?s rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q696908
P17
Q486972
USER
Which human settlements are situated in that state ?
(c(Q486972),P17,Q696908)
action filter_type
action find_reverse
entity Q696908
relation P17
type Q486972
[{'concept': 'Q486972'}, 'P17', 'Q696908']
SELECT DISTINCT ?x WHERE { ?x property:P17 resource:Q696908 . ?x rdf:type ontology:Q486972 }
Kingdom of Poland
action filter_type
action find_reverse
entity Kingdom of Poland
relation country
type human settlement
[{'concept': 'human settlement'}, 'country', 'Kingdom of Poland']
SELECT DISTINCT ?x WHERE { ?x property:country resource:Kingdom_of_Poland . ?x rdf:type ontology:human_settlement }
[]
human settlement
Q145972 Q104725
SYSTEM
Zamość, Płock
Q145972 Q104725
(c(Q486972),P17,Q696908)
action filter_type
action find_reverse
entity Q696908
relation P17
type Q486972
[ANSWERS] are situated in that state
[{'concept': 'Q486972'}, 'P17', 'Q696908']
SELECT DISTINCT ?x WHERE { ?x property:P17 resource:Q696908 . ?x rdf:type ontology:Q486972 }
Zamość Płock
Zamość and Płock are situated in that state
Zamość Płock
action filter_type
action find_reverse
entity Kingdom of Poland
relation country
type human settlement
[{'concept': 'human settlement'}, 'country', 'Kingdom of Poland']
SELECT DISTINCT ?x WHERE { ?x property:country resource:Kingdom_of_Poland . ?x rdf:type ontology:human_settlement }
[]