Simple Question (Direct)
Simple Question
Q877450
P710
Q7275
USER
Who attended Laotian Civil War ?
(Q877450,P710,c(Q7275))
action filter_type
action find
entity Q877450
relation P710
type Q7275
['Q877450', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q877450 property:P710 ?r . ?r rdf:type ontology:Q7275 }
Laotian Civil War
action filter_type
action find
entity Laotian Civil War
relation participant
type state
['Laotian Civil War', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Laotian_Civil_War property:participant ?r . ?r rdf:type ontology:state }
[]
state
Q172640 Q180573 Q870055
SYSTEM
North Vietnam, South Vietnam, Kingdom of Laos
Q172640 Q180573 Q870055
(Q877450,P710,c(Q7275))
action filter_type
action find
entity Q877450
relation P710
type Q7275
[ANSWERS] attended Laotian Civil War
['Q877450', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q877450 property:P710 ?r . ?r rdf:type ontology:Q7275 }
North Vietnam South Vietnam Kingdom of Laos
North Vietnam, South Vietnam and Kingdom of Laos attended Laotian Civil War
North Vietnam South Vietnam Kingdom of Laos
action filter_type
action find
entity Laotian Civil War
relation participant
type state
['Laotian Civil War', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Laotian_Civil_War property:participant ?r . ?r rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q877450
P607
Q502895
USER
Which people did Laotian Civil War fight in ?
(c(Q502895),P607,Q877450)
action filter_type
action find_reverse
entity Q877450
relation P607
type Q502895
[{'concept': 'Q502895'}, 'P607', 'Q877450']
SELECT DISTINCT ?l WHERE { ?l property:P607 resource:Q877450 . ?l rdf:type ontology:Q502895 }
Laotian Civil War
action filter_type
action find_reverse
entity Laotian Civil War
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Laotian Civil War']
SELECT DISTINCT ?l WHERE { ?l property:conflict resource:Laotian_Civil_War . ?l rdf:type ontology:common_name }
[]
common name
Q772637 Q7914747 Q5407168
SYSTEM
Vang Pao, Vang Sue, Eugene DeBruin
Q5407168 Q772637 Q7914747 Q4260702
(c(Q502895),P607,Q877450)
action filter_type
action find_reverse
entity Q877450
relation P607
type Q502895
Laotian Civil War fought between [ANSWERS]
[{'concept': 'Q502895'}, 'P607', 'Q877450']
SELECT DISTINCT ?l WHERE { ?l property:P607 resource:Q877450 . ?l rdf:type ontology:Q502895 }
Eugene DeBruin Vang Pao Vang Sue Lee Lue
Laotian Civil War fought between Vang Pao, Vang Sue and Eugene DeBruin
Vang Pao Vang Sue Eugene DeBruin
action filter_type
action find_reverse
entity Laotian Civil War
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Laotian Civil War']
SELECT DISTINCT ?l WHERE { ?l property:conflict resource:Laotian_Civil_War . ?l rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5407168
P21
Q290
USER
What is the sex of that person ?
(Q5407168,P21,c(Q290))
action filter_type
action find
entity Q5407168
relation P21
type Q290
['Q5407168', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q5407168 property:P21 ?s . ?s rdf:type ontology:Q290 }
Eugene DeBruin
action filter_type
action find
entity Eugene DeBruin
relation gender
type sex
['Eugene DeBruin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Eugene_DeBruin property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q772637
SYSTEM
Did you mean Vang Pao ?
Q772637 Q7914747 Q5407168
(Q772637,P21,c(Q290)) (Q7914747,P21,c(Q290)) (Q5407168,P21,c(Q290))
[ANSWER]
['Q772637', 'P21', {'concept': 'Q290'}] ['Q7914747', 'P21', {'concept': 'Q290'}] ['Q5407168', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q5407168 property:P21 ?s . ?s rdf:type ontology:Q290 }
Vang Pao Vang Sue Eugene DeBruin
Did you mean Vang Pao ?
Vang Pao
['Vang Pao', 'gender', {'concept': 'sex'}] ['Vang Sue', 'gender', {'concept': 'sex'}] ['Eugene DeBruin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Eugene_DeBruin property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
No, I meant Eugene DeBruin. Could you tell me the answer for that?
(Q5407168,P21,c(Q290))
Q5407168
['Q5407168', 'P21', {'concept': 'Q290'}]
['Eugene DeBruin', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q5407168,P21,c(Q290))
action filter_type
action find
entity Q5407168
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q5407168', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q5407168 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Eugene DeBruin
relation gender
type sex
['Eugene DeBruin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Eugene_DeBruin property:gender ?s . ?s rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q21005050
P122
Q7257 Q7275 Q7275
USER
How many states have more number of ideologies or states as government than Kingdom of Morgannwg ?
(c(Q7275),P122,c(Q7257)|c(Q7275))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q7275
type Q7257
action find_tuple_counts
relation P122
type Q7275
type Q7275
action count
action filter_multi_types
action find
entity Q21005050
relation P122
type Q7257
type Q7275
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7257'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?u WHERE { { ?u property:P122 ?m . ?u rdf:type ontology:Q7275 . ?m rdf:type ontology:Q7257 } UNION { ?u property:P122 ?m . ?u rdf:type ontology:Q7275 . ?m rdf:type ontology:Q7275 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q21005050 property:P122 ?o . { ?o rdf:type ?f . VALUES ( ?f ) { ( ontology:Q7257 ) ( ontology:Q7275 ) } } } } . FILTER ( ?p > ?n ) }
Kingdom of Morgannwg
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type state
type ideology
action find_tuple_counts
relation basic form of government
type state
type state
action count
action filter_multi_types
action find
entity Kingdom of Morgannwg
relation basic form of government
type ideology
type state
[{'concept': 'state'}, 'basic form of government', [{'concept': 'ideology'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?u WHERE { { ?u property:basic_form_of_government ?m . ?u rdf:type ontology:state . ?m rdf:type ontology:ideology } UNION { ?u property:basic_form_of_government ?m . ?u rdf:type ontology:state . ?m rdf:type ontology:state } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Kingdom_of_Morgannwg property:basic_form_of_government ?o . { ?o rdf:type ?f . VALUES ( ?f ) { ( ontology:ideology ) ( ontology:state ) } } } } . FILTER ( ?p > ?n ) }
[]
ideology state state
SYSTEM
8
Q330988 Q16957 Q853348 Q146328 Q940821 Q199841 Q121932 Q211274
(c(Q7275),P122,c(Q7257)|c(Q7275))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q7275
type Q7257
action find_tuple_counts
relation P122
type Q7275
type Q7275
action count
action filter_multi_types
action find
entity Q21005050
relation P122
type Q7257
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7257'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?u WHERE { { ?u property:P122 ?m . ?u rdf:type ontology:Q7275 . ?m rdf:type ontology:Q7257 } UNION { ?u property:P122 ?m . ?u rdf:type ontology:Q7275 . ?m rdf:type ontology:Q7275 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q21005050 property:P122 ?o . { ?o rdf:type ?f . VALUES ( ?f ) { ( ontology:Q7257 ) ( ontology:Q7275 ) } } } } . FILTER ( ?p > ?n ) }
Democratic Kampuchea East Germany Czechoslovak Socialist Republic Commonwealth of the Philippines People's Democratic Republic of Ethiopia South Yemen People's Republic of Bulgaria People's Republic of Poland
8
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type state
type ideology
action find_tuple_counts
relation basic form of government
type state
type state
action count
action filter_multi_types
action find
entity Kingdom of Morgannwg
relation basic form of government
type ideology
type state
[{'concept': 'state'}, 'basic form of government', [{'concept': 'ideology'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?u WHERE { { ?u property:basic_form_of_government ?m . ?u rdf:type ontology:state . ?m rdf:type ontology:ideology } UNION { ?u property:basic_form_of_government ?m . ?u rdf:type ontology:state . ?m rdf:type ontology:state } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Kingdom_of_Morgannwg property:basic_form_of_government ?o . { ?o rdf:type ?f . VALUES ( ?f ) { ( ontology:ideology ) ( ontology:state ) } } } } . FILTER ( ?p > ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1636212
P122
Q7257 Q7275 Q7275
USER
And also tell me about Karabakh Khanate?
(c(Q7275),P122,c(Q7257)|c(Q7275))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q7275
type Q7257
action find_tuple_counts
relation P122
type Q7275
type Q7275
action count
action filter_multi_types
action find
entity Q1636212
relation P122
type Q7257
type Q7275
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7257'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Q1636212 property:P122 ?i . { { ?i rdf:type ontology:Q7257 } UNION { ?i rdf:type ontology:Q7275 } } } } . FILTER ( ?s > ?o ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) ?w WHERE { { ?w property:P122 ?p . ?w rdf:type ontology:Q7275 . ?p rdf:type ontology:Q7257 } UNION { ?w property:P122 ?p . ?p rdf:type ontology:Q7275 . ?w rdf:type ontology:Q7275 } } GROUP BY ?w } }
Karabakh Khanate
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type state
type ideology
action find_tuple_counts
relation basic form of government
type state
type state
action count
action filter_multi_types
action find
entity Karabakh Khanate
relation basic form of government
type ideology
type state
[{'concept': 'state'}, 'basic form of government', [{'concept': 'ideology'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Karabakh_Khanate property:basic_form_of_government ?i . { { ?i rdf:type ontology:ideology } UNION { ?i rdf:type ontology:state } } } } . FILTER ( ?s > ?o ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) ?w WHERE { { ?w property:basic_form_of_government ?p . ?w rdf:type ontology:state . ?p rdf:type ontology:ideology } UNION { ?w property:basic_form_of_government ?p . ?p rdf:type ontology:state . ?w rdf:type ontology:state } } GROUP BY ?w } }
[]
ideology state state
SYSTEM
8
Q330988 Q16957 Q853348 Q146328 Q940821 Q199841 Q121932 Q211274
(c(Q7275),P122,c(Q7257)|c(Q7275))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q7275
type Q7257
action find_tuple_counts
relation P122
type Q7275
type Q7275
action count
action filter_multi_types
action find
entity Q1636212
relation P122
type Q7257
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7257'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Q1636212 property:P122 ?i . { { ?i rdf:type ontology:Q7257 } UNION { ?i rdf:type ontology:Q7275 } } } } . FILTER ( ?s > ?o ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) ?w WHERE { { ?w property:P122 ?p . ?w rdf:type ontology:Q7275 . ?p rdf:type ontology:Q7257 } UNION { ?w property:P122 ?p . ?p rdf:type ontology:Q7275 . ?w rdf:type ontology:Q7275 } } GROUP BY ?w } }
Democratic Kampuchea East Germany Czechoslovak Socialist Republic Commonwealth of the Philippines People's Democratic Republic of Ethiopia South Yemen People's Republic of Bulgaria People's Republic of Poland
8
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type state
type ideology
action find_tuple_counts
relation basic form of government
type state
type state
action count
action filter_multi_types
action find
entity Karabakh Khanate
relation basic form of government
type ideology
type state
[{'concept': 'state'}, 'basic form of government', [{'concept': 'ideology'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Karabakh_Khanate property:basic_form_of_government ?i . { { ?i rdf:type ontology:ideology } UNION { ?i rdf:type ontology:state } } } } . FILTER ( ?s > ?o ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) ?w WHERE { { ?w property:basic_form_of_government ?p . ?w rdf:type ontology:state . ?p rdf:type ontology:ideology } UNION { ?w property:basic_form_of_government ?p . ?p rdf:type ontology:state . ?w rdf:type ontology:state } } GROUP BY ?w } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5407168
P69
Q3918
USER
What is the university where Eugene DeBruin was educated ?
(Q5407168,P69,c(Q3918))
action filter_type
action find
entity Q5407168
relation P69
type Q3918
['Q5407168', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { resource:Q5407168 property:P69 ?g . ?g rdf:type ontology:Q3918 }
Eugene DeBruin
action filter_type
action find
entity Eugene DeBruin
relation educated at
type university
['Eugene DeBruin', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { resource:Eugene_DeBruin property:educated_at ?g . ?g rdf:type ontology:university }
[]
university
Q2302336
SYSTEM
University of Montana
Q2302336
(Q5407168,P69,c(Q3918))
action filter_type
action find
entity Q5407168
relation P69
type Q3918
The university Eugene DeBruin was educated is the [ANSWER]
['Q5407168', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { resource:Q5407168 property:P69 ?g . ?g rdf:type ontology:Q3918 }
University of Montana
The university Eugene DeBruin was educated is the University of Montana
University of Montana
action filter_type
action find
entity Eugene DeBruin
relation educated at
type university
['Eugene DeBruin', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { resource:Eugene_DeBruin property:educated_at ?g . ?g rdf:type ontology:university }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2302336 Q15433591
P69
Q502895
USER
Is Martin V. Melosi an alumni of that university ?
(Q15433591,P69,Q2302336)
action is_in
entity Q2302336
action find
entity Q15433591
relation P69
['Q15433591', 'P69', 'Q2302336']
ASK WHERE { resource:Q15433591 property:P69 resource:Q2302336 }
University of Montana Martin V. Melosi
action is_in
entity University of Montana
action find
entity Martin V. Melosi
relation educated at
['Martin V. Melosi', 'educated at', 'University of Montana']
ASK WHERE { resource:Martin_V._Melosi property:educated_at resource:University_of_Montana }
[]
common name
SYSTEM
YES
(Q15433591,P69,Q2302336)
action is_in
entity Q2302336
action find
entity Q15433591
relation P69
[ANSWER]
['Q15433591', 'P69', 'Q2302336']
ASK WHERE { resource:Q15433591 property:P69 resource:Q2302336 }
Yes
action is_in
entity University of Montana
action find
entity Martin V. Melosi
relation educated at
['Martin V. Melosi', 'educated at', 'University of Montana']
ASK WHERE { resource:Martin_V._Melosi property:educated_at resource:University_of_Montana }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5081434 Q5407168
P607
Q350604
USER
Which armed conflicts did Eugene DeBruin or Charles P. Murray, Jr. take part in ?
OR((Q5407168,P607,c(Q350604)), (Q5081434,P607,c(Q350604)))
action filter_type
action union
action find
entity Q5407168
relation P607
action find
entity Q5081434
relation P607
type Q350604
{'OR': [['Q5407168', 'P607', {'concept': 'Q350604'}], ['Q5081434', 'P607', {'concept': 'Q350604'}]]}
SELECT DISTINCT ?d WHERE { { ?n property:P607 ?d . VALUES ( ?n ) { ( resource:Q5407168 ) ( resource:Q5081434 ) } } . ?d rdf:type ontology:Q350604 }
Charles P. Murray, Jr. Eugene DeBruin
action filter_type
action union
action find
entity Eugene DeBruin
relation conflict
action find
entity Charles P. Murray, Jr.
relation conflict
type armed conflict
{'OR': [['Eugene DeBruin', 'conflict', {'concept': 'armed conflict'}], ['Charles P. Murray, Jr.', 'conflict', {'concept': 'armed conflict'}]]}
SELECT DISTINCT ?d WHERE { { ?n property:conflict ?d . VALUES ( ?n ) { ( resource:Eugene_DeBruin ) ( resource:Charles_P._Murray,_Jr. ) } } . ?d rdf:type ontology:armed_conflict }
[]
armed conflict
Q877450 Q8740 Q8663
SYSTEM
Laotian Civil War, Vietnam War, Korean War
Q877450 Q8740 Q8663
OR((Q5407168,P607,c(Q350604)), (Q5081434,P607,c(Q350604)))
action filter_type
action union
action find
entity Q5407168
relation P607
action find
entity Q5081434
relation P607
type Q350604
Eugene DeBruin or Charles P. Murray , Jr. took in part the [ANSWERS]
{'OR': [['Q5407168', 'P607', {'concept': 'Q350604'}], ['Q5081434', 'P607', {'concept': 'Q350604'}]]}
SELECT DISTINCT ?d WHERE { { ?n property:P607 ?d . VALUES ( ?n ) { ( resource:Q5407168 ) ( resource:Q5081434 ) } } . ?d rdf:type ontology:Q350604 }
Laotian Civil War Vietnam War Korean War
Eugene DeBruin or Charles P. Murray , Jr. took in part the Laotian Civil War, Vietnam War and Korean War
Laotian Civil War Vietnam War Korean War
action filter_type
action union
action find
entity Eugene DeBruin
relation conflict
action find
entity Charles P. Murray, Jr.
relation conflict
type armed conflict
{'OR': [['Eugene DeBruin', 'conflict', {'concept': 'armed conflict'}], ['Charles P. Murray, Jr.', 'conflict', {'concept': 'armed conflict'}]]}
SELECT DISTINCT ?d WHERE { { ?n property:conflict ?d . VALUES ( ?n ) { ( resource:Eugene_DeBruin ) ( resource:Charles_P._Murray,_Jr. ) } } . ?d rdf:type ontology:armed_conflict }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P276
Q15324 Q1267889
USER
How many bodies of water and waterways can that armed conflict be found ?
(Q8663,P276,c(Q15324)) (Q8663,P276,c(Q1267889)) (Q877450,P276,c(Q15324)) (Q877450,P276,c(Q1267889)) (Q8740,P276,c(Q15324)) (Q8740,P276,c(Q1267889)) (Q8663,P276,c(Q15324)) (Q8663,P276,c(Q1267889))
['Q8663', 'P276', {'concept': 'Q15324'}] ['Q8663', 'P276', {'concept': 'Q1267889'}] ['Q877450', 'P276', {'concept': 'Q15324'}] ['Q877450', 'P276', {'concept': 'Q1267889'}] ['Q8740', 'P276', {'concept': 'Q15324'}] ['Q8740', 'P276', {'concept': 'Q1267889'}] ['Q8663', 'P276', {'concept': 'Q15324'}] ['Q8663', 'P276', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q8663 property:Q17334923 ?z } UNION { resource:Q8663 property:Q17334923 ?y } UNION { resource:Q877450 property:Q17334923 ?z } UNION { resource:Q877450 property:Q17334923 ?y } UNION { resource:Q8740 property:Q17334923 ?z } UNION { resource:Q8740 property:Q17334923 ?y } UNION { resource:Q8663 property:Q17334923 ?z } UNION { resource:Q8663 property:Q17334923 ?y } } . ?z rdf:type ontology:Q15324 . ?y rdf:type ontology:Q1267889 }
['Korean War', 'location', {'concept': 'body of water'}] ['Korean War', 'location', {'concept': 'waterway'}] ['Laotian Civil War', 'location', {'concept': 'body of water'}] ['Laotian Civil War', 'location', {'concept': 'waterway'}] ['Vietnam War', 'location', {'concept': 'body of water'}] ['Vietnam War', 'location', {'concept': 'waterway'}] ['Korean War', 'location', {'concept': 'body of water'}] ['Korean War', 'location', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Korean_War property:location ?z } UNION { resource:Korean_War property:location ?y } UNION { resource:Laotian_Civil_War property:location ?z } UNION { resource:Laotian_Civil_War property:location ?y } UNION { resource:Vietnam_War property:location ?z } UNION { resource:Vietnam_War property:location ?y } UNION { resource:Korean_War property:location ?z } UNION { resource:Korean_War property:location ?y } } . ?z rdf:type ontology:body_of_water . ?y rdf:type ontology:waterway }
[]
body of water waterway
Quantitative|Count|Mult. entity type|Clarification
Q8663
SYSTEM
Did you mean Korean War ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q8663 property:Q17334923 ?z } UNION { resource:Q8663 property:Q17334923 ?y } UNION { resource:Q877450 property:Q17334923 ?z } UNION { resource:Q877450 property:Q17334923 ?y } UNION { resource:Q8740 property:Q17334923 ?z } UNION { resource:Q8740 property:Q17334923 ?y } UNION { resource:Q8663 property:Q17334923 ?z } UNION { resource:Q8663 property:Q17334923 ?y } } . ?z rdf:type ontology:Q15324 . ?y rdf:type ontology:Q1267889 }
Did you mean Korean War ?
Korean War
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Korean_War property:location ?z } UNION { resource:Korean_War property:location ?y } UNION { resource:Laotian_Civil_War property:location ?z } UNION { resource:Laotian_Civil_War property:location ?y } UNION { resource:Vietnam_War property:location ?z } UNION { resource:Vietnam_War property:location ?y } UNION { resource:Korean_War property:location ?z } UNION { resource:Korean_War property:location ?y } } . ?z rdf:type ontology:body_of_water . ?y rdf:type ontology:waterway }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q8663,P276,c(Q15324)) (Q8663,P276,c(Q1267889)) (Q877450,P276,c(Q15324)) (Q877450,P276,c(Q1267889)) (Q8740,P276,c(Q15324)) (Q8740,P276,c(Q1267889)) (Q8663,P276,c(Q15324)) (Q8663,P276,c(Q1267889))
['Q8663', 'P276', {'concept': 'Q15324'}] ['Q8663', 'P276', {'concept': 'Q1267889'}] ['Q877450', 'P276', {'concept': 'Q15324'}] ['Q877450', 'P276', {'concept': 'Q1267889'}] ['Q8740', 'P276', {'concept': 'Q15324'}] ['Q8740', 'P276', {'concept': 'Q1267889'}] ['Q8663', 'P276', {'concept': 'Q15324'}] ['Q8663', 'P276', {'concept': 'Q1267889'}]
['Korean War', 'location', {'concept': 'body of water'}] ['Korean War', 'location', {'concept': 'waterway'}] ['Laotian Civil War', 'location', {'concept': 'body of water'}] ['Laotian Civil War', 'location', {'concept': 'waterway'}] ['Vietnam War', 'location', {'concept': 'body of water'}] ['Vietnam War', 'location', {'concept': 'waterway'}] ['Korean War', 'location', {'concept': 'body of water'}] ['Korean War', 'location', {'concept': 'waterway'}]
[]
SYSTEM
1 bodies of water and 1 waterways
Q27092 Q52052
(Q8663,P276,c(Q15324)) (Q8663,P276,c(Q1267889)) (Q877450,P276,c(Q15324)) (Q877450,P276,c(Q1267889)) (Q8740,P276,c(Q15324)) (Q8740,P276,c(Q1267889)) (Q8663,P276,c(Q15324)) (Q8663,P276,c(Q1267889))
[ANSWER]
['Q8663', 'P276', {'concept': 'Q15324'}] ['Q8663', 'P276', {'concept': 'Q1267889'}] ['Q877450', 'P276', {'concept': 'Q15324'}] ['Q877450', 'P276', {'concept': 'Q1267889'}] ['Q8740', 'P276', {'concept': 'Q15324'}] ['Q8740', 'P276', {'concept': 'Q1267889'}] ['Q8663', 'P276', {'concept': 'Q15324'}] ['Q8663', 'P276', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q8663 property:Q17334923 ?z } UNION { resource:Q8663 property:Q17334923 ?y } UNION { resource:Q877450 property:Q17334923 ?z } UNION { resource:Q877450 property:Q17334923 ?y } UNION { resource:Q8740 property:Q17334923 ?z } UNION { resource:Q8740 property:Q17334923 ?y } UNION { resource:Q8663 property:Q17334923 ?z } UNION { resource:Q8663 property:Q17334923 ?y } } . ?z rdf:type ontology:Q15324 . ?y rdf:type ontology:Q1267889 }
Sea of Japan Korea Strait
1 bodies of water and 1 waterways
['Korean War', 'location', {'concept': 'body of water'}] ['Korean War', 'location', {'concept': 'waterway'}] ['Laotian Civil War', 'location', {'concept': 'body of water'}] ['Laotian Civil War', 'location', {'concept': 'waterway'}] ['Vietnam War', 'location', {'concept': 'body of water'}] ['Vietnam War', 'location', {'concept': 'waterway'}] ['Korean War', 'location', {'concept': 'body of water'}] ['Korean War', 'location', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Korean_War property:location ?z } UNION { resource:Korean_War property:location ?y } UNION { resource:Laotian_Civil_War property:location ?z } UNION { resource:Laotian_Civil_War property:location ?y } UNION { resource:Vietnam_War property:location ?z } UNION { resource:Vietnam_War property:location ?y } UNION { resource:Korean_War property:location ?z } UNION { resource:Korean_War property:location ?y } } . ?z rdf:type ontology:body_of_water . ?y rdf:type ontology:waterway }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7276140 Q5407168
P27
Q15617994
USER
Which administrative territories do Eugene DeBruin or Cho Dong-Chan belong to ?
OR((Q5407168,P27,c(Q15617994)), (Q7276140,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5407168
relation P27
action find
entity Q7276140
relation P27
type Q15617994
{'OR': [['Q5407168', 'P27', {'concept': 'Q15617994'}], ['Q7276140', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q5407168 property:P27 ?w } UNION { resource:Q7276140 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Cho Dong-Chan Eugene DeBruin
action filter_type
action union
action find
entity Eugene DeBruin
relation country of citizenship
action find
entity Cho Dong-Chan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Eugene DeBruin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cho Dong-Chan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Eugene_DeBruin property:country_of_citizenship ?w } UNION { resource:Cho_Dong-Chan property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q884
SYSTEM
United States of America, South Korea
Q30 Q884
OR((Q5407168,P27,c(Q15617994)), (Q7276140,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5407168
relation P27
action find
entity Q7276140
relation P27
type Q15617994
Eugene DeBruin or Cho Dong-Chan belong to the [ANSWERS]
{'OR': [['Q5407168', 'P27', {'concept': 'Q15617994'}], ['Q7276140', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q5407168 property:P27 ?w } UNION { resource:Q7276140 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
United States of America South Korea
Eugene DeBruin or Cho Dong-Chan belong to the United States of America and South Korea
United States of America South Korea
action filter_type
action union
action find
entity Eugene DeBruin
relation country of citizenship
action find
entity Cho Dong-Chan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Eugene DeBruin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cho Dong-Chan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Eugene_DeBruin property:country_of_citizenship ?w } UNION { resource:Cho_Dong-Chan property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q13749239
P17
Q37726
USER
Are ROK-US 1 Corps located in those administrative territories ?
(Q13749239,P17,Q30) (Q13749239,P17,Q884)
action is_in
entity prev_answer
action find
entity Q13749239
relation P17
['Q13749239', 'P17', 'Q30'] ['Q13749239', 'P17', 'Q884']
ASK WHERE { resource:Q13749239 property:P17 ?e . VALUES ( ?e ) { ( resource:Q30 ) ( resource:Q884 ) } }
ROK-US 1 Corps
action is_in
entity prev_answer
action find
entity ROK-US 1 Corps
relation country
['ROK-US 1 Corps', 'country', 'United States of America'] ['ROK-US 1 Corps', 'country', 'South Korea']
ASK WHERE { resource:ROK-US_1_Corps property:country ?e . VALUES ( ?e ) { ( resource:United_States_of_America ) ( resource:South_Korea ) } }
[]
army
SYSTEM
YES
(Q13749239,P17,Q30) (Q13749239,P17,Q884)
action is_in
entity prev_answer
action find
entity Q13749239
relation P17
[ANSWER]
['Q13749239', 'P17', 'Q30'] ['Q13749239', 'P17', 'Q884']
ASK WHERE { resource:Q13749239 property:P17 ?e . VALUES ( ?e ) { ( resource:Q30 ) ( resource:Q884 ) } }
Yes
action is_in
entity prev_answer
action find
entity ROK-US 1 Corps
relation country
['ROK-US 1 Corps', 'country', 'United States of America'] ['ROK-US 1 Corps', 'country', 'South Korea']
ASK WHERE { resource:ROK-US_1_Corps property:country ?e . VALUES ( ?e ) { ( resource:United_States_of_America ) ( resource:South_Korea ) } }
[]