Simple Question (Direct)
Simple Question
Q4910073
P607
Q198
USER
Which war did Bill McCann take part in ?
(Q4910073,P607,c(Q198))
action filter_type
action find
entity Q4910073
relation P607
type Q198
['Q4910073', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q198 . resource:Q4910073 property:P607 ?n }
Bill McCann
action filter_type
action find
entity Bill McCann
relation conflict
type war
['Bill McCann', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:war . resource:Bill_McCann property:conflict ?n }
[]
war
Q361
SYSTEM
World War I
Q361
(Q4910073,P607,c(Q198))
action filter_type
action find
entity Q4910073
relation P607
type Q198
Bill McCann took part in [ANSWER]
['Q4910073', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q198 . resource:Q4910073 property:P607 ?n }
World War I
Bill McCann took part in World War I
World War I
action filter_type
action find
entity Bill McCann
relation conflict
type war
['Bill McCann', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:war . resource:Bill_McCann property:conflict ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4910073
P166
Q618779
USER
Which awards were Bill McCann awarded with ?
(Q4910073,P166,c(Q618779))
action filter_type
action find
entity Q4910073
relation P166
type Q618779
['Q4910073', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?h WHERE { resource:Q4910073 property:P166 ?h . ?h rdf:type ontology:Q618779 }
Bill McCann
action filter_type
action find
entity Bill McCann
relation award received
type award
['Bill McCann', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?h WHERE { resource:Bill_McCann property:award_received ?h . ?h rdf:type ontology:award }
[]
award
Q1335064 Q615838
SYSTEM
Military Cross, Distinguished Service Order
Q1335064 Q615838
(Q4910073,P166,c(Q618779))
action filter_type
action find
entity Q4910073
relation P166
type Q618779
Bill McCann were awarded the [ANSWERS]
['Q4910073', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?h WHERE { resource:Q4910073 property:P166 ?h . ?h rdf:type ontology:Q618779 }
Military Cross Distinguished Service Order
Bill McCann were awarded the Military Cross and Distinguished Service Order
Military Cross Distinguished Service Order
action filter_type
action find
entity Bill McCann
relation award received
type award
['Bill McCann', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?h WHERE { resource:Bill_McCann property:award_received ?h . ?h rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4910073
P19
Q15700808
USER
Which urban unit definition is the birthplace of that person ?
(Q1335064,P19,c(Q15700808)) (Q615838,P19,c(Q15700808))
action filter_type
action find
entity Q4910073
relation P19
type Q15700808
['Q1335064', 'P19', {'concept': 'Q15700808'}] ['Q615838', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?x WHERE { resource:Q4910073 property:P19 ?x . ?x rdf:type ontology:Q15700808 }
Bill McCann
action filter_type
action find
entity Bill McCann
relation place of birth
type urban unit definition
['Military Cross', 'place of birth', {'concept': 'urban unit definition'}] ['Distinguished Service Order', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?x WHERE { resource:Bill_McCann property:place_of_birth ?x . ?x rdf:type ontology:urban_unit_definition }
[]
urban unit definition
Q5566656
SYSTEM
Glanville
Q5566656
(Q1335064,P19,c(Q15700808)) (Q615838,P19,c(Q15700808))
action filter_type
action find
entity Q4910073
relation P19
type Q15700808
[ANSWER] is the birthplace of that person
['Q1335064', 'P19', {'concept': 'Q15700808'}] ['Q615838', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?x WHERE { resource:Q4910073 property:P19 ?x . ?x rdf:type ontology:Q15700808 }
Glanville
Glanville is the birthplace of that person
Glanville
action filter_type
action find
entity Bill McCann
relation place of birth
type urban unit definition
['Military Cross', 'place of birth', {'concept': 'urban unit definition'}] ['Distinguished Service Order', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?x WHERE { resource:Bill_McCann property:place_of_birth ?x . ?x rdf:type ontology:urban_unit_definition }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5566656 Q408
P17
Q1048835
USER
Is that urban unit definition present in Australia ?
(Q5566656,P17,Q408)
action is_in
entity Q408
action find
entity Q5566656
relation P17
['Q5566656', 'P17', 'Q408']
ASK WHERE { resource:Q5566656 property:P17 resource:Q408 }
Glanville Australia
action is_in
entity Australia
action find
entity Glanville
relation country
['Glanville', 'country', 'Australia']
ASK WHERE { resource:Glanville property:country resource:Australia }
[]
political territorial entity
SYSTEM
YES
(Q5566656,P17,Q408)
action is_in
entity Q408
action find
entity Q5566656
relation P17
[ANSWER]
['Q5566656', 'P17', 'Q408']
ASK WHERE { resource:Q5566656 property:P17 resource:Q408 }
Yes
action is_in
entity Australia
action find
entity Glanville
relation country
['Glanville', 'country', 'Australia']
ASK WHERE { resource:Glanville property:country resource:Australia }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P607
Q198 Q2235308 Q502895
USER
Which wars did exactly 8 ship types or people take part in ?
(c(Q2235308)|c(Q502895),P607,c(Q198))
action equal
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
value 8
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { ?g rdf:type ?m . VALUES ( ?m ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?e } . FILTER ( ?n = 8 ) }
action equal
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
value 8
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { ?g rdf:type ?m . VALUES ( ?m ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?e } . FILTER ( ?n = 8 ) }
[]
war ship type common name
Q795269 Q208484 Q188972
SYSTEM
Sierra Leone Civil War, Lebanese Civil War, Greek Civil War
Q795269 Q208484 Q188972
(c(Q2235308)|c(Q502895),P607,c(Q198))
action equal
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
value 8
[ANSWERS] exactly 8 ship types or people took part in
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { ?g rdf:type ?m . VALUES ( ?m ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?e } . FILTER ( ?n = 8 ) }
Sierra Leone Civil War Lebanese Civil War Greek Civil War
Sierra Leone Civil War, Lebanese Civil War and Greek Civil War exactly 8 ship types or people took part in
Sierra Leone Civil War Lebanese Civil War Greek Civil War
action equal
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
value 8
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { ?g rdf:type ?m . VALUES ( ?m ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?e } . FILTER ( ?n = 8 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q188972
P710
Q7275
USER
Which artist participated in that war ?
(Q188972,P710,c(Q7275))
action filter_type
action find
entity Q188972
relation P710
type Q7275
['Q188972', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { resource:Q188972 property:P710 ?e . ?e rdf:type ontology:Q7275 }
Greek Civil War
action filter_type
action find
entity Greek Civil War
relation participant
type state
['Greek Civil War', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { resource:Greek_Civil_War property:participant ?e . ?e rdf:type ontology:state }
[]
state
Clarification for simple ques.
Q188972
SYSTEM
Did you mean Greek Civil War ?
Q795269 Q208484 Q188972
(Q795269,P710,c(Q7275)) (Q208484,P710,c(Q7275)) (Q188972,P710,c(Q7275))
[ANSWER]
['Q795269', 'P710', {'concept': 'Q7275'}] ['Q208484', 'P710', {'concept': 'Q7275'}] ['Q188972', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { resource:Q188972 property:P710 ?e . ?e rdf:type ontology:Q7275 }
Sierra Leone Civil War Lebanese Civil War Greek Civil War
Did you mean Greek Civil War ?
Greek Civil War
['Sierra Leone Civil War', 'participant', {'concept': 'state'}] ['Lebanese Civil War', 'participant', {'concept': 'state'}] ['Greek Civil War', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { resource:Greek_Civil_War property:participant ?e . ?e rdf:type ontology:state }
[]
Simple Question (Coreferenced)
USER
Yes
(Q188972,P710,c(Q7275))
['Q188972', 'P710', {'concept': 'Q7275'}]
['Greek Civil War', 'participant', {'concept': 'state'}]
[]
Q209065
SYSTEM
Kingdom of Greece
Q209065
(Q188972,P710,c(Q7275))
action filter_type
action find
entity Q188972
relation P710
type Q7275
[ANSWER] participated in that war
['Q188972', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { resource:Q188972 property:P710 ?e . ?e rdf:type ontology:Q7275 }
Kingdom of Greece
Kingdom of Greece participated in that war
Kingdom of Greece
action filter_type
action find
entity Greek Civil War
relation participant
type state
['Greek Civil War', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { resource:Greek_Civil_War property:participant ?e . ?e rdf:type ontology:state }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q1048835 Q22676587 Q7275
USER
How many states have atleast 1 political territories or monarchic systems as the type of government ?
(c(Q7275),P122,c(Q1048835)|c(Q22676587))
action count
action atleast
action union
action find_tuple_counts
relation P122
type Q7275
type Q1048835
action find_tuple_counts
relation P122
type Q7275
type Q22676587
value 1
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q1048835'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?x WHERE { VALUES ( ?f ) { ( ontology:Q22676587 ) ( ontology:Q1048835 ) } . ?q rdf:type ?f } GROUP BY ?x } . FILTER ( ?s >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation basic form of government
type state
type political territorial entity
action find_tuple_counts
relation basic form of government
type state
type monarchic system
value 1
[{'concept': 'state'}, 'basic form of government', [{'concept': 'political territorial entity'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?x WHERE { VALUES ( ?f ) { ( ontology:monarchic_system ) ( ontology:political_territorial_entity ) } . ?q rdf:type ?f } GROUP BY ?x } . FILTER ( ?s >= 1 ) }
[]
political territorial entity monarchic system state
SYSTEM
11
Q172107 Q476757 Q1247508 Q1811029 Q83572 Q1649871 Q62519 Q83286 Q1477220 Q161036 Q2305337
(c(Q7275),P122,c(Q1048835)|c(Q22676587))
action count
action atleast
action union
action find_tuple_counts
relation P122
type Q7275
type Q1048835
action find_tuple_counts
relation P122
type Q7275
type Q22676587
value 1
[ANSWER]
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q1048835'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?x WHERE { VALUES ( ?f ) { ( ontology:Q22676587 ) ( ontology:Q1048835 ) } . ?q rdf:type ?f } GROUP BY ?x } . FILTER ( ?s >= 1 ) }
Polish–Lithuanian Commonwealth Democratic Republic of Afghanistan Domain of Soissons Finnish Socialist Workers' Republic Sikh Empire Kingdom of Poland Finnish Democratic Republic Socialist Federal Republic of Yugoslavia Somali Democratic Republic Free State of Prussia Azerbaijan People's Government
11
action count
action atleast
action union
action find_tuple_counts
relation basic form of government
type state
type political territorial entity
action find_tuple_counts
relation basic form of government
type state
type monarchic system
value 1
[{'concept': 'state'}, 'basic form of government', [{'concept': 'political territorial entity'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?x WHERE { VALUES ( ?f ) { ( ontology:monarchic_system ) ( ontology:political_territorial_entity ) } . ?q rdf:type ?f } GROUP BY ?x } . FILTER ( ?s >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q188972
P710
Q7275
USER
Who was a participant of Greek Civil War ?
(Q188972,P710,c(Q7275))
action filter_type
action find
entity Q188972
relation P710
type Q7275
['Q188972', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { resource:Q188972 property:P710 ?a . ?a rdf:type ontology:Q7275 }
Greek Civil War
action filter_type
action find
entity Greek Civil War
relation participant
type state
['Greek Civil War', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { resource:Greek_Civil_War property:participant ?a . ?a rdf:type ontology:state }
[]
state
Q209065
SYSTEM
Kingdom of Greece
Q209065
(Q188972,P710,c(Q7275))
action filter_type
action find
entity Q188972
relation P710
type Q7275
A participant of Greek Civil War was the [ANSWER]
['Q188972', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { resource:Q188972 property:P710 ?a . ?a rdf:type ontology:Q7275 }
Kingdom of Greece
A participant of Greek Civil War was the Kingdom of Greece
Kingdom of Greece
action filter_type
action find
entity Greek Civil War
relation participant
type state
['Greek Civil War', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { resource:Greek_Civil_War property:participant ?a . ?a rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q209065
P1376
Q56061
USER
Which administrative territory is the county seat for that state ?
(c(Q56061),P1376,Q209065)
action filter_type
action find_reverse
entity Q209065
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q209065']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q209065 . ?u rdf:type ontology:Q56061 }
Kingdom of Greece
action filter_type
action find_reverse
entity Kingdom of Greece
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kingdom of Greece']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Kingdom_of_Greece . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1524
SYSTEM
Athens
Q1524
(c(Q56061),P1376,Q209065)
action filter_type
action find_reverse
entity Q209065
relation P1376
type Q56061
[ANSWER] is the county seat for that state
[{'concept': 'Q56061'}, 'P1376', 'Q209065']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q209065 . ?u rdf:type ontology:Q56061 }
Athens
Athens is the county seat for that state
Athens
action filter_type
action find_reverse
entity Kingdom of Greece
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kingdom of Greece']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Kingdom_of_Greece . ?u rdf:type ontology:administrative_territorial_entity }
[]