Simple Question (Direct)
Simple Question
Q7648822
P166
Q2003221
USER
What was awarded to Susantha de Fonseka ?
(Q7648822,P166,c(Q2003221))
action filter_type
action find
entity Q7648822
relation P166
type Q2003221
['Q7648822', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?c WHERE { resource:Q7648822 property:P166 ?c . ?c rdf:type ontology:Q2003221 }
Susantha de Fonseka
action filter_type
action find
entity Susantha de Fonseka
relation award received
type chivalric order
['Susantha de Fonseka', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?c WHERE { resource:Susantha_de_Fonseka property:award_received ?c . ?c rdf:type ontology:chivalric_order }
[]
chivalric order
Q12201445
SYSTEM
Knight Commander of the Order of the British Empire
Q12201445
(Q7648822,P166,c(Q2003221))
action filter_type
action find
entity Q7648822
relation P166
type Q2003221
The [ANSWER] was awarded to Susantha de Fonseka
['Q7648822', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?c WHERE { resource:Q7648822 property:P166 ?c . ?c rdf:type ontology:Q2003221 }
Knight Commander of the Order of the British Empire
The Knight Commander of the Order of the British Empire was awarded to Susantha de Fonseka
Knight Commander of the Order of the British Empire
action filter_type
action find
entity Susantha de Fonseka
relation award received
type chivalric order
['Susantha de Fonseka', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?c WHERE { resource:Susantha_de_Fonseka property:award_received ?c . ?c rdf:type ontology:chivalric_order }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7648822
P607
Q198
USER
What battle was that person a part of ?
(Q12201445,P607,c(Q198))
action filter_type
action find
entity Q7648822
relation P607
type Q198
['Q12201445', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { resource:Q7648822 property:P607 ?a . ?a rdf:type ontology:Q198 }
Susantha de Fonseka
action filter_type
action find
entity Susantha de Fonseka
relation conflict
type war
['Knight Commander of the Order of the British Empire', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { resource:Susantha_de_Fonseka property:conflict ?a . ?a rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q12201445,P607,c(Q198))
action filter_type
action find
entity Q7648822
relation P607
type Q198
What battle was that person a part of
['Q12201445', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { resource:Q7648822 property:P607 ?a . ?a rdf:type ontology:Q198 }
World War II
What battle was that person a part of
World War II
action filter_type
action find
entity Susantha de Fonseka
relation conflict
type war
['Knight Commander of the Order of the British Empire', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { resource:Susantha_de_Fonseka property:conflict ?a . ?a rdf:type ontology:war }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q362
P1344
Q502895 Q1048835
USER
How many people or political territories competited in World War II ?
(c(Q502895),P1344,Q362) (c(Q1048835),P1344,Q362)
action count
action union
action filter_type
action find_reverse
entity Q362
relation P1344
type Q502895
action filter_type
action find_reverse
entity Q362
relation P1344
type Q1048835
[{'concept': 'Q502895'}, 'P1344', 'Q362'] [{'concept': 'Q1048835'}, 'P1344', 'Q362']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q502895 ) } }
World War II
action count
action union
action filter_type
action find_reverse
entity World War II
relation participant of
type common name
action filter_type
action find_reverse
entity World War II
relation participant of
type political territorial entity
[{'concept': 'common name'}, 'participant of', 'World War II'] [{'concept': 'political territorial entity'}, 'participant of', 'World War II']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:common_name ) } }
[]
common name political territorial entity
SYSTEM
4
Q3618889 Q408 Q24206060 Q18043431
(c(Q502895),P1344,Q362) (c(Q1048835),P1344,Q362)
action count
action union
action filter_type
action find_reverse
entity Q362
relation P1344
type Q502895
action filter_type
action find_reverse
entity Q362
relation P1344
type Q1048835
[ANSWER]
[{'concept': 'Q502895'}, 'P1344', 'Q362'] [{'concept': 'Q1048835'}, 'P1344', 'Q362']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q502895 ) } }
Anton Ukmar Australia Friedrich Wilhelm Jerrentrup Paul-Émile Lessire
4
action count
action union
action filter_type
action find_reverse
entity World War II
relation participant of
type common name
action filter_type
action find_reverse
entity World War II
relation participant of
type political territorial entity
[{'concept': 'common name'}, 'participant of', 'World War II'] [{'concept': 'political territorial entity'}, 'participant of', 'World War II']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:common_name ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atleast 3186 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3186
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?w >= 3186 ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?t } }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3186
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?w >= 3186 ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?t } }
[]
musical instrument common name
Q5994 Q8355
SYSTEM
piano, violin
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3186
[ANSWERS] can atleast 3186 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?w >= 3186 ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?t } }
piano violin
Piano and violin can atleast 3186 people perform with
piano violin
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3186
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?w >= 3186 ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?t } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5994 Q8355
P425
Q12737077
USER
Which occupations do piano and violin belong to ?
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q8355)
action union
action filter_type
action find_reverse
entity Q5994
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q8355
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q8355']
SELECT DISTINCT ?y WHERE { ?y property:P425 ?t . VALUES ( ?t ) { ( resource:Q5994 ) ( resource:Q8355 ) } }
piano violin
action union
action filter_type
action find_reverse
entity piano
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity violin
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'violin']
SELECT DISTINCT ?y WHERE { ?y property:field_of_this_occupation ?t . VALUES ( ?t ) { ( resource:piano ) ( resource:violin ) } }
[]
occupation
Q486748 Q885122 Q1259917
SYSTEM
pianist, piano maker, violinist
Q486748 Q885122 Q1259917
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q8355)
action union
action filter_type
action find_reverse
entity Q5994
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q8355
relation P425
type Q12737077
Piano and violin belong to the [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q8355']
SELECT DISTINCT ?y WHERE { ?y property:P425 ?t . VALUES ( ?t ) { ( resource:Q5994 ) ( resource:Q8355 ) } }
pianist piano maker violinist
Piano and violin belong to the pianist, piano maker and violinist
pianist piano maker violinist
action union
action filter_type
action find_reverse
entity piano
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity violin
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'violin']
SELECT DISTINCT ?y WHERE { ?y property:field_of_this_occupation ?t . VALUES ( ?t ) { ( resource:piano ) ( resource:violin ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7648822
P241
Q781132
USER
Which military branch is Susantha de Fonseka affiliated to ?
(Q7648822,P241,c(Q781132))
action filter_type
action find
entity Q7648822
relation P241
type Q781132
['Q7648822', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?t WHERE { resource:Q7648822 property:P241 ?t . ?t rdf:type ontology:Q781132 }
Susantha de Fonseka
action filter_type
action find
entity Susantha de Fonseka
relation military branch
type military branch
['Susantha de Fonseka', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?t WHERE { resource:Susantha_de_Fonseka property:military_branch ?t . ?t rdf:type ontology:military_branch }
[]
military branch
Q172771
SYSTEM
Royal Navy
Q172771
(Q7648822,P241,c(Q781132))
action filter_type
action find
entity Q7648822
relation P241
type Q781132
Susantha de Fonseka is affiliated to [ANSWER]
['Q7648822', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?t WHERE { resource:Q7648822 property:P241 ?t . ?t rdf:type ontology:Q781132 }
Royal Navy
Susantha de Fonseka is affiliated to Royal Navy
Royal Navy
action filter_type
action find
entity Susantha de Fonseka
relation military branch
type military branch
['Susantha de Fonseka', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?t WHERE { resource:Susantha_de_Fonseka property:military_branch ?t . ?t rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172771
P710
Q178561
USER
Which battle has that military branch as its participant ?
(c(Q178561),P710,Q172771)
action filter_type
action find_reverse
entity Q172771
relation P710
type Q178561
[{'concept': 'Q178561'}, 'P710', 'Q172771']
SELECT DISTINCT ?n WHERE { ?n property:P710 resource:Q172771 . ?n rdf:type ontology:Q178561 }
Royal Navy
action filter_type
action find_reverse
entity Royal Navy
relation participant
type battle
[{'concept': 'battle'}, 'participant', 'Royal Navy']
SELECT DISTINCT ?n WHERE { ?n property:participant resource:Royal_Navy . ?n rdf:type ontology:battle }
[]
battle
Q7130016
SYSTEM
The Psilander-affair
Q7130016
(c(Q178561),P710,Q172771)
action filter_type
action find_reverse
entity Q172771
relation P710
type Q178561
[ANSWER] has that military branch as its participant
[{'concept': 'Q178561'}, 'P710', 'Q172771']
SELECT DISTINCT ?n WHERE { ?n property:P710 resource:Q172771 . ?n rdf:type ontology:Q178561 }
The Psilander-affair
The Psilander-affair has that military branch as its participant
The Psilander-affair
action filter_type
action find_reverse
entity Royal Navy
relation participant
type battle
[{'concept': 'battle'}, 'participant', 'Royal Navy']
SELECT DISTINCT ?n WHERE { ?n property:participant resource:Royal_Navy . ?n rdf:type ontology:battle }
[]