Simple Question (Direct)
Simple Question
Q6504410
P607
Q350604
USER
Which battles did Lawrence N. Guarino take part in ?
(Q6504410,P607,c(Q350604))
action filter_type
action find
entity Q6504410
relation P607
type Q350604
['Q6504410', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?e WHERE { resource:Q6504410 property:P607 ?e . ?e rdf:type ontology:Q350604 }
Lawrence N. Guarino
action filter_type
action find
entity Lawrence N. Guarino
relation conflict
type armed conflict
['Lawrence N. Guarino', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?e WHERE { resource:Lawrence_N._Guarino property:conflict ?e . ?e rdf:type ontology:armed_conflict }
[]
armed conflict
Q8663 Q8740
SYSTEM
Korean War, Vietnam War
Q8663 Q8740
(Q6504410,P607,c(Q350604))
action filter_type
action find
entity Q6504410
relation P607
type Q350604
Lawrence N. Guarino took in part the [ANSWERS]
['Q6504410', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?e WHERE { resource:Q6504410 property:P607 ?e . ?e rdf:type ontology:Q350604 }
Korean War Vietnam War
Lawrence N. Guarino took in part the Korean War and Vietnam War
Korean War Vietnam War
action filter_type
action find
entity Lawrence N. Guarino
relation conflict
type armed conflict
['Lawrence N. Guarino', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?e WHERE { resource:Lawrence_N._Guarino property:conflict ?e . ?e rdf:type ontology:armed_conflict }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8663
P361
Q1190554
USER
Which events are a component of that armed conflict ?
(c(Q1190554),P361,Q8663)
action filter_type
action find_reverse
entity Q8663
relation P361
type Q1190554
[{'concept': 'Q1190554'}, 'P361', 'Q8663']
SELECT DISTINCT ?n WHERE { ?n property:P361 resource:Q8663 . ?n rdf:type ontology:Q1190554 }
Korean War
action filter_type
action find_reverse
entity Korean War
relation part of
type event
[{'concept': 'event'}, 'part of', 'Korean War']
SELECT DISTINCT ?n WHERE { ?n property:part_of resource:Korean_War . ?n rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q8740
SYSTEM
Did you mean Vietnam War ?
Q8663 Q8740
(c(Q1190554),P361,Q8663) (c(Q1190554),P361,Q8740)
[ANSWER]
[{'concept': 'Q1190554'}, 'P361', 'Q8663'] [{'concept': 'Q1190554'}, 'P361', 'Q8740']
SELECT DISTINCT ?n WHERE { ?n property:P361 resource:Q8663 . ?n rdf:type ontology:Q1190554 }
Korean War Vietnam War
Did you mean Vietnam War ?
Vietnam War
[{'concept': 'event'}, 'part of', 'Korean War'] [{'concept': 'event'}, 'part of', 'Vietnam War']
SELECT DISTINCT ?n WHERE { ?n property:part_of resource:Korean_War . ?n rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
No, I meant Korean War. Could you tell me the answer for that?
(c(Q1190554),P361,Q8663)
Q8663
[{'concept': 'Q1190554'}, 'P361', 'Q8663']
[{'concept': 'event'}, 'part of', 'Korean War']
[]
Q2890901 Q4871183 Q482979
SYSTEM
Battle of Nam River, Battle of Haman, Battle of Pusan Perimeter
Q4872974 Q484494 Q493313 Q4871183 Q19839896 Q492880 Q2887781 Q2890898 Q493122 Q713018 Q493131 Q4871689 Q493252 Q4872790 Q4871355 Q18016068 Q4438418 Q2888742 Q2889283 Q2888830 Q2890955 Q483039 Q4871945 Q4872485 Q483464 Q2888378 Q764177 Q2890901 Q2890905 Q489561 Q482979 Q486367 Q486531
(c(Q1190554),P361,Q8663)
action filter_type
action find_reverse
entity Q8663
relation P361
type Q1190554
[ANSWERS] are a component of that armed conflict
[{'concept': 'Q1190554'}, 'P361', 'Q8663']
SELECT DISTINCT ?n WHERE { ?n property:P361 resource:Q8663 . ?n rdf:type ontology:Q1190554 }
Battle of the Notch Battle of Osan Battle of the Ch'ongch'on River Battle of Haman Battle for Outpost Vegas Battle of Taejon Battle of Sunchon Naval Battle of the Han River Battle of Sangju Battle of Kapyong Battle of Pyongtaek Battle of Masan Battle of Chonan Battle of Yongsan Battle of Ka-san First Battle of Seoul Battle of P'ohang-dong Battle of Kyongju First Battle of Maryang San Battle of Hwanggan Battle of the Hook Battle of Inchon Battle of Onjong Battle of Tabu-dong Battle of Chipyong-ni Battle of Taegu Battle of Wawon Battle of Nam River Battle of the Samichon River Battle of Heartbreak Ridge Battle of Pusan Perimeter Battle of Chumonchin Chan Battle of Unsan
Battle of Nam River, Battle of Haman and Battle of Pusan Perimeter are a component of that armed conflict
Battle of Nam River Battle of Haman Battle of Pusan Perimeter
action filter_type
action find_reverse
entity Korean War
relation part of
type event
[{'concept': 'event'}, 'part of', 'Korean War']
SELECT DISTINCT ?n WHERE { ?n property:part_of resource:Korean_War . ?n rdf:type ontology:event }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P361
Q1190554
USER
How many events are that event a part of ?
(Q2890901,P361,c(Q1190554))
['Q2890901', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2890901 property:P361 ?z . ?z rdf:type ontology:Q5416694 }
['Battle of Nam River', 'part of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Battle_of_Nam_River property:part_of ?z . ?z rdf:type ontology:event }
[]
event
Quantitative|Count|Single entity type|Clarification
Q2890901
SYSTEM
Did you mean Battle of Nam River ?
(Q2890901,P361,c(Q1190554)) (Q4871183,P361,c(Q1190554)) (Q482979,P361,c(Q1190554))
[ANSWER]
['Q2890901', 'P361', {'concept': 'Q1190554'}] ['Q4871183', 'P361', {'concept': 'Q1190554'}] ['Q482979', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2890901 property:P361 ?z . ?z rdf:type ontology:Q5416694 }
Did you mean Battle of Nam River ?
Battle of Nam River
['Battle of Nam River', 'part of', {'concept': 'event'}] ['Battle of Haman', 'part of', {'concept': 'event'}] ['Battle of Pusan Perimeter', 'part of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Battle_of_Nam_River property:part_of ?z . ?z rdf:type ontology:event }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q2890901,P361,c(Q1190554))
['Q2890901', 'P361', {'concept': 'Q1190554'}]
['Battle of Nam River', 'part of', {'concept': 'event'}]
[]
SYSTEM
1
Q482979
(Q2890901,P361,c(Q1190554))
[ANSWER]
['Q2890901', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2890901 property:P361 ?z . ?z rdf:type ontology:Q5416694 }
Battle of Pusan Perimeter
1
['Battle of Nam River', 'part of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Battle_of_Nam_River property:part_of ?z . ?z rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2890901
P276
Q355304
USER
Where is Battle of Nam River located ?
(Q2890901,P276,c(Q355304))
action filter_type
action find
entity Q2890901
relation P276
type Q355304
['Q2890901', 'P276', {'concept': 'Q355304'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q355304 . resource:Q2890901 property:P276 ?x }
Battle of Nam River
action filter_type
action find
entity Battle of Nam River
relation location
type watercourse
['Battle of Nam River', 'location', {'concept': 'watercourse'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:watercourse . resource:Battle_of_Nam_River property:location ?x }
[]
watercourse
Q485254
SYSTEM
Nam River
Q485254
(Q2890901,P276,c(Q355304))
action filter_type
action find
entity Q2890901
relation P276
type Q355304
Battle of [ANSWER] is located of [ANSWER]
['Q2890901', 'P276', {'concept': 'Q355304'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q355304 . resource:Q2890901 property:P276 ?x }
Nam River
Battle of Nam River is located of Nam River
Nam River
action filter_type
action find
entity Battle of Nam River
relation location
type watercourse
['Battle of Nam River', 'location', {'concept': 'watercourse'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:watercourse . resource:Battle_of_Nam_River property:location ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q350604 Q1914636 Q350604
USER
How many armed conflicts are exactly 1 activities or armed conflicts a portion of ?
(c(Q1914636)|c(Q350604),P361,c(Q350604))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q1914636
action find_reverse_tuple_counts
relation P361
type Q350604
type Q350604
value 1
[[{'concept': 'Q1914636'}, {'concept': 'Q350604'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) ?a WHERE { VALUES ( ?c ) { ( ontology:Q1914636 ) ( ontology:Q350604 ) } . ?r rdf:type ?c } GROUP BY ?a } . FILTER ( ?v = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type armed conflict
type activity
action find_reverse_tuple_counts
relation part of
type armed conflict
type armed conflict
value 1
[[{'concept': 'activity'}, {'concept': 'armed conflict'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) ?a WHERE { VALUES ( ?c ) { ( ontology:activity ) ( ontology:armed_conflict ) } . ?r rdf:type ?c } GROUP BY ?a } . FILTER ( ?v = 1 ) }
[]
armed conflict activity armed conflict
SYSTEM
8
Q1676845 Q321780 Q49077 Q2487 Q29242 Q48249 Q617827 Q151622
(c(Q1914636)|c(Q350604),P361,c(Q350604))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q1914636
action find_reverse_tuple_counts
relation P361
type Q350604
type Q350604
value 1
[ANSWER]
[[{'concept': 'Q1914636'}, {'concept': 'Q350604'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) ?a WHERE { VALUES ( ?c ) { ( ontology:Q1914636 ) ( ontology:Q350604 ) } . ?r rdf:type ?c } GROUP BY ?a } . FILTER ( ?v = 1 ) }
Boer Wa Georgian–Abkhazian conflict Six-Day War Thirty Years' War Georgian–Ossetian conflict Falklands War Apache Wars Israeli–Palestinian conflict
8
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type armed conflict
type activity
action find_reverse_tuple_counts
relation part of
type armed conflict
type armed conflict
value 1
[[{'concept': 'activity'}, {'concept': 'armed conflict'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) ?a WHERE { VALUES ( ?c ) { ( ontology:activity ) ( ontology:armed_conflict ) } . ?r rdf:type ?c } GROUP BY ?a } . FILTER ( ?v = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q748780 Q8740
P361
Q198
USER
Which wars are Vietnam War and First Indochina War a part of ?
AND((Q8740,P361,c(Q198)), (Q748780,P361,c(Q198)))
action filter_type
action intersection
action find
entity Q8740
relation P361
action find
entity Q748780
relation P361
type Q198
{'AND': [['Q8740', 'P361', {'concept': 'Q198'}], ['Q748780', 'P361', {'concept': 'Q198'}]]}
SELECT DISTINCT ?a WHERE { resource:Q8740 property:P361 ?a . resource:Q748780 property:P361 ?a . ?a rdf:type ontology:Q198 }
First Indochina War Vietnam War
action filter_type
action intersection
action find
entity Vietnam War
relation part of
action find
entity First Indochina War
relation part of
type war
{'AND': [['Vietnam War', 'part of', {'concept': 'war'}], ['First Indochina War', 'part of', {'concept': 'war'}]]}
SELECT DISTINCT ?a WHERE { resource:Vietnam_War property:part_of ?a . resource:First_Indochina_War property:part_of ?a . ?a rdf:type ontology:war }
[]
war
Q8683
SYSTEM
Cold War
Q8683
AND((Q8740,P361,c(Q198)), (Q748780,P361,c(Q198)))
action filter_type
action intersection
action find
entity Q8740
relation P361
action find
entity Q748780
relation P361
type Q198
The [ANSWER] is Vietnam War and First Indochina War a part of
{'AND': [['Q8740', 'P361', {'concept': 'Q198'}], ['Q748780', 'P361', {'concept': 'Q198'}]]}
SELECT DISTINCT ?a WHERE { resource:Q8740 property:P361 ?a . resource:Q748780 property:P361 ?a . ?a rdf:type ontology:Q198 }
Cold War
The Cold War is Vietnam War and First Indochina War a part of
Cold War
action filter_type
action intersection
action find
entity Vietnam War
relation part of
action find
entity First Indochina War
relation part of
type war
{'AND': [['Vietnam War', 'part of', {'concept': 'war'}], ['First Indochina War', 'part of', {'concept': 'war'}]]}
SELECT DISTINCT ?a WHERE { resource:Vietnam_War property:part_of ?a . resource:First_Indochina_War property:part_of ?a . ?a rdf:type ontology:war }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P793
Q1190554 Q17335294 Q201658
USER
Which events are the significant events associated with max number of coats of arms and film genres ?
(c(Q17335294)|c(Q201658),P793,c(Q1190554))
action argmax
action union
action find_reverse_tuple_counts
relation P793
type Q1190554
type Q17335294
action find_reverse_tuple_counts
relation P793
type Q1190554
type Q201658
[[{'concept': 'Q17335294'}, {'concept': 'Q201658'}], 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?l ) { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?s ) WHERE { { ?e property:P793 ?z . ?z rdf:type ontology:Q1190554 . ?e rdf:type ontology:Q201658 } UNION { ?e rdf:type ontology:Q17335294 . ?z rdf:type ontology:Q1190554 . ?e property:P793 ?z } } GROUP BY ?z } } . { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { { ?f property:P793 ?i . ?i rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q201658 } UNION { ?f property:P793 ?i . ?i rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q17335294 } } GROUP BY ?i } . FILTER ( ?x = ?l ) }
action argmax
action union
action find_reverse_tuple_counts
relation significant event
type event
type flag or coat of arms
action find_reverse_tuple_counts
relation significant event
type event
type film genre
[[{'concept': 'flag or coat of arms'}, {'concept': 'film genre'}], 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?l ) { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?s ) WHERE { { ?e property:significant_event ?z . ?z rdf:type ontology:event . ?e rdf:type ontology:film_genre } UNION { ?e rdf:type ontology:flag_or_coat_of_arms . ?z rdf:type ontology:event . ?e property:significant_event ?z } } GROUP BY ?z } } . { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { { ?f property:significant_event ?i . ?i rdf:type ontology:event . ?f rdf:type ontology:film_genre } UNION { ?f property:significant_event ?i . ?i rdf:type ontology:event . ?f rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?i } . FILTER ( ?x = ?l ) }
[]
event flag or coat of arms film genre
Q21014657
SYSTEM
assignment
Q21014657
(c(Q17335294)|c(Q201658),P793,c(Q1190554))
action argmax
action union
action find_reverse_tuple_counts
relation P793
type Q1190554
type Q17335294
action find_reverse_tuple_counts
relation P793
type Q1190554
type Q201658
[ANSWER] is the significant events associated with max number of coats of arms and film genres
[[{'concept': 'Q17335294'}, {'concept': 'Q201658'}], 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?l ) { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?s ) WHERE { { ?e property:P793 ?z . ?z rdf:type ontology:Q1190554 . ?e rdf:type ontology:Q201658 } UNION { ?e rdf:type ontology:Q17335294 . ?z rdf:type ontology:Q1190554 . ?e property:P793 ?z } } GROUP BY ?z } } . { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { { ?f property:P793 ?i . ?i rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q201658 } UNION { ?f property:P793 ?i . ?i rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q17335294 } } GROUP BY ?i } . FILTER ( ?x = ?l ) }
assignment
Assignment is the significant events associated with max number of coats of arms and film genres
assignment
action argmax
action union
action find_reverse_tuple_counts
relation significant event
type event
type flag or coat of arms
action find_reverse_tuple_counts
relation significant event
type event
type film genre
[[{'concept': 'flag or coat of arms'}, {'concept': 'film genre'}], 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?l ) { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?s ) WHERE { { ?e property:significant_event ?z . ?z rdf:type ontology:event . ?e rdf:type ontology:film_genre } UNION { ?e rdf:type ontology:flag_or_coat_of_arms . ?z rdf:type ontology:event . ?e property:significant_event ?z } } GROUP BY ?z } } . { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { { ?f property:significant_event ?i . ?i rdf:type ontology:event . ?f rdf:type ontology:film_genre } UNION { ?f property:significant_event ?i . ?i rdf:type ontology:event . ?f rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?i } . FILTER ( ?x = ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q3839081 Q1190554
USER
Which disasters are the causes of max number of events ?
(c(Q1190554),P828,Q629257)
action argmax
action find_tuple_counts
relation P828
type Q3839081
type Q1190554
[{'concept': 'Q1190554'}, 'P828', 'Q629257']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?b ) WHERE { ?x property:P828 ?l . ?x rdf:type ontology:Q3839081 . ?l rdf:type ontology:Q1190554 } GROUP BY ?x } . FILTER ( ?b = ?k ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?o ) WHERE { ?f property:P828 ?g . ?f rdf:type ontology:Q3839081 . ?g rdf:type ontology:Q1190554 } GROUP BY ?f } } }
action argmax
action find_tuple_counts
relation has cause
type disaster
type event
[{'concept': 'event'}, 'has cause', 'work accident']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?b ) WHERE { ?x property:has_cause ?l . ?x rdf:type ontology:disaster . ?l rdf:type ontology:event } GROUP BY ?x } . FILTER ( ?b = ?k ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?o ) WHERE { ?f property:has_cause ?g . ?f rdf:type ontology:disaster . ?g rdf:type ontology:event } GROUP BY ?f } } }
[]
disaster event
Q8068
SYSTEM
flood
Q8068
(c(Q1190554),P828,Q629257)
action argmax
action find_tuple_counts
relation P828
type Q3839081
type Q1190554
The [ANSWER] is the causes of max number of events
[{'concept': 'Q1190554'}, 'P828', 'Q629257']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?b ) WHERE { ?x property:P828 ?l . ?x rdf:type ontology:Q3839081 . ?l rdf:type ontology:Q1190554 } GROUP BY ?x } . FILTER ( ?b = ?k ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?o ) WHERE { ?f property:P828 ?g . ?f rdf:type ontology:Q3839081 . ?g rdf:type ontology:Q1190554 } GROUP BY ?f } } }
flood
The flood is the causes of max number of events
flood
action argmax
action find_tuple_counts
relation has cause
type disaster
type event
[{'concept': 'event'}, 'has cause', 'work accident']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?b ) WHERE { ?x property:has_cause ?l . ?x rdf:type ontology:disaster . ?l rdf:type ontology:event } GROUP BY ?x } . FILTER ( ?b = ?k ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?o ) WHERE { ?f property:has_cause ?g . ?f rdf:type ontology:disaster . ?g rdf:type ontology:event } GROUP BY ?f } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P1542
Q3839081 Q483247
USER
How many disasters are caused by lesser number of phenomena than that disaster ?
(c(Q483247),P1542,c(Q3839081))
action count
action less
action find_reverse_tuple_counts
relation P1542
type Q3839081
type Q483247
action count
action filter_type
action find_reverse
entity Q8068
relation P1542
type Q483247
[{'concept': 'Q483247'}, 'P1542', {'concept': 'Q3839081'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { FILTER ( ?j < ?s ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:P1542 resource:Q8068 . ?x rdf:type ontology:Q483247 } } . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?j ) WHERE { ?f rdf:type ontology:Q3839081 . ?w rdf:type ontology:Q483247 . ?w property:P1542 ?f } GROUP BY ?f } }
action count
action less
action find_reverse_tuple_counts
relation cause of
type disaster
type phenomenon
action count
action filter_type
action find_reverse
entity flood
relation cause of
type phenomenon
[{'concept': 'phenomenon'}, 'cause of', {'concept': 'disaster'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { FILTER ( ?j < ?s ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:cause_of resource:flood . ?x rdf:type ontology:phenomenon } } . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?j ) WHERE { ?f rdf:type ontology:disaster . ?w rdf:type ontology:phenomenon . ?w property:cause_of ?f } GROUP BY ?f } }
[]
disaster phenomenon
SYSTEM
8
Q1470579 Q171178 Q2035019 Q858734 Q977367 Q3589134 Q3589133 Q2036106
(c(Q483247),P1542,c(Q3839081))
action count
action less
action find_reverse_tuple_counts
relation P1542
type Q3839081
type Q483247
action count
action filter_type
action find_reverse
entity Q8068
relation P1542
type Q483247
[ANSWER]
[{'concept': 'Q483247'}, 'P1542', {'concept': 'Q3839081'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { FILTER ( ?j < ?s ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:P1542 resource:Q8068 . ?x rdf:type ontology:Q483247 } } . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?j ) WHERE { ?f rdf:type ontology:Q3839081 . ?w rdf:type ontology:Q483247 . ?w property:P1542 ?f } GROUP BY ?f } }
Otter Valley polio epidemic Fukushima nuclear accident 1854 Broad Street cholera outbreak Superga air disaster chemical accident measles epidemic France 2008 chikungunya epidemic on Réunion Polio Epidemic 1916
8
action count
action less
action find_reverse_tuple_counts
relation cause of
type disaster
type phenomenon
action count
action filter_type
action find_reverse
entity flood
relation cause of
type phenomenon
[{'concept': 'phenomenon'}, 'cause of', {'concept': 'disaster'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { FILTER ( ?j < ?s ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:cause_of resource:flood . ?x rdf:type ontology:phenomenon } } . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?j ) WHERE { ?f rdf:type ontology:disaster . ?w rdf:type ontology:phenomenon . ?w property:cause_of ?f } GROUP BY ?f } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8740
P921
Q838948
USER
Which works of art have Vietnam War as their main topic ?
(c(Q838948),P921,Q8740)
action filter_type
action find_reverse
entity Q8740
relation P921
type Q838948
[{'concept': 'Q838948'}, 'P921', 'Q8740']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q838948 . ?r property:P921 resource:Q8740 }
Vietnam War
action filter_type
action find_reverse
entity Vietnam War
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Vietnam War']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:work_of_art . ?r property:main_subject resource:Vietnam_War }
[]
work of art
Q134773 Q471159 Q1114683
SYSTEM
Forrest Gump, Born on the Fourth of July, Coming Home
Q1004410 Q7397446 Q5248882 Q3681883 Q5531095 Q4631008 Q464653 Q7928476 Q923195 Q1757251 Q4975608 Q7557419 Q3258662 Q4940413 Q1534422 Q2060676 Q15068397 Q3520085 Q5449423 Q884220 Q182692 Q705802 Q2140490 Q8050877 Q7928466 Q757156 Q7317370 Q7080382 Q3683982 Q3620669 Q5467502 Q342876 Q4979729 Q5376779 Q208047 Q33671 Q6060669 Q485525 Q3485205 Q7785741 Q3284269 Q4660223 Q795482 Q5423777 Q4899181 Q134773 Q3280602 Q5291522 Q406785 Q4887452 Q466846 Q4553663 Q201674 Q210233 Q8026319 Q639864 Q7884352 Q4656629 Q272604 Q7738775 Q896904 Q1063617 Q12100287 Q7989301 Q7727983 Q3523285 Q7928479 Q5227902 Q1126637 Q7771335 Q1180839 Q2996690 Q7730288 Q1114683 Q7928545 Q5055407 Q7773323 Q6838747 Q7721071 Q471159 Q270351 Q7618615 Q7776123 Q751064 Q2830457 Q190643 Q5282913 Q1212912 Q7934987 Q700725 Q2688829 Q1198661 Q7749884 Q11907224 Q946863 Q5422689 Q15052317
(c(Q838948),P921,Q8740)
action filter_type
action find_reverse
entity Q8740
relation P921
type Q838948
Forrest Gump, Born on the Fourth of July and coming Home have Vietnam War as their main topic
[{'concept': 'Q838948'}, 'P921', 'Q8740']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q838948 . ?r property:P921 resource:Q8740 }
Bullet in the Head Sad Song of Yellow Skin Deceit Operation Nam Gene Boy Came Home 21 and a Wake-Up The Quiet American Vietnam: The Last Battle Above the Law The Exterminator Brotherhood of Death Soldiers in Hiding Far from Vietnam Bomb Harvest Going Upriver First Kill In the Shadow of the Blade The Boys in Company C Final Reprisal Blind Fury Apocalypse Now Flight of the Intruder Big Wednesday Year Zero: The Silent Death of Cambodia Vietnam, Long Time Coming Hair Return with Honor Oh, Saigon Combat Shock Apocalypse Now Redux Forced Entry Across the Universe Brushfire Enemy Image 1968 Tunnel Rats Deathdream Investigation of a Flame The Classic Sir! No Sir! This Hour Has Seven Days Street Scenes A Touch of Home: The Vietnam War's Red Cross Girls Bat*21 F.T.A. Between the Lines Forrest Gump Hearts and Minds Don't Cry, It's Only Thunder Air America Benefit of the Doubt The Fog of War 17th Parallel: Vietnam in War The Deer Hunter The Anderson Platoon Winter Soldier In the Year of the Pig Unfinished Symphony: Democracy and Dissent A Face of War 84C MoPic The Hanoi Hilton Braddock: Missing in Action III Dogfight A.W.O.L. Westmoreland v. CBS The Crazy World of Julius Vrooder The War at Home Vietnam: The Ten Thousand Day War Daughter from Danang Casualties of War The Uncounted Enemy Dead Presidents Coordinates of Death The Disappearance of McKinley Nolan Coming Home Vietnam Requiem Cayo The Wall That Heals Mickey Mouse in Vietnam The Camden 28 Born on the Fourth of July American Gangster Stolen Honor The World of Charlie Company A Better Tomorrow 3 Alamo Bay Platoon Distant Thunder 1969 Virtual JFK Birdy Regret to Inform The Most Dangerous Man in America: Daniel Ellsberg and the Pentagon Papers The Man Nobody Knew Unclaimed Behind Enemy Lines Eye of the Eagle 2: Inside the Enemy Into Harm's Way
Forrest Gump, Born on the Fourth of July and coming Home have Vietnam War as their main topic
Forrest Gump Born on the Fourth of July Coming Home
action filter_type
action find_reverse
entity Vietnam War
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Vietnam War']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:work_of_art . ?r property:main_subject resource:Vietnam_War }
[]