Simple Question (Direct)
Simple Question
Q567598
P921
Q198
USER
What was A Woman in Berlin mainly about ?
(Q567598,P921,c(Q198))
action filter_type
action find
entity Q567598
relation P921
type Q198
['Q567598', 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q198 . resource:Q567598 property:P921 ?l }
A Woman in Berlin
action filter_type
action find
entity A Woman in Berlin
relation main subject
type war
['A Woman in Berlin', 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:war . resource:A_Woman_in_Berlin property:main_subject ?l }
[]
war
Q362
SYSTEM
World War II
Q362
(Q567598,P921,c(Q198))
action filter_type
action find
entity Q567598
relation P921
type Q198
Mainly in [ANSWER] A Woman in Berlin was about
['Q567598', 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q198 . resource:Q567598 property:P921 ?l }
World War II
Mainly in World War II A Woman in Berlin was about
World War II
action filter_type
action find
entity A Woman in Berlin
relation main subject
type war
['A Woman in Berlin', 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:war . resource:A_Woman_in_Berlin property:main_subject ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q567598
P58
Q502895
USER
Who wrote the script for that work of art ?
(Q362,P58,c(Q502895))
action filter_type
action find
entity Q567598
relation P58
type Q502895
['Q362', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q567598 property:P58 ?f }
A Woman in Berlin
action filter_type
action find
entity A Woman in Berlin
relation screenwriter
type common name
['World War II', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:A_Woman_in_Berlin property:screenwriter ?f }
[]
common name
Q66070
SYSTEM
Max Färberböck
Q66070
(Q362,P58,c(Q502895))
action filter_type
action find
entity Q567598
relation P58
type Q502895
[ANSWER] wrote the script for that work of art
['Q362', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q567598 property:P58 ?f }
Max Färberböck
Max Färberböck wrote the script for that work of art
Max Färberböck
action filter_type
action find
entity A Woman in Berlin
relation screenwriter
type common name
['World War II', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:A_Woman_in_Berlin property:screenwriter ?f }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can approximately 3682 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3682
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?y = 3682 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3682
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?y = 3682 ) }
[]
musical instrument common name
Q8355 Q1444
SYSTEM
violin, organ
Q8355 Q1444
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3682
[ANSWERS] can approximately 3682 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?y = 3682 ) }
violin organ
Violin and organ can approximately 3682 people perform with
violin organ
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3682
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?y = 3682 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q66874
P1303
Q502895
USER
Does Hermann Graedener play those musical instruments ?
(Q66874,P1303,Q8355) (Q66874,P1303,Q1444)
action is_in
entity prev_answer
action find
entity Q66874
relation P1303
['Q66874', 'P1303', 'Q8355'] ['Q66874', 'P1303', 'Q1444']
ASK WHERE { resource:Q66874 property:P1303 ?j . VALUES ( ?j ) { ( resource:Q8355 ) ( resource:Q1444 ) } }
Hermann Graedener
action is_in
entity prev_answer
action find
entity Hermann Graedener
relation instrument
['Hermann Graedener', 'instrument', 'violin'] ['Hermann Graedener', 'instrument', 'organ']
ASK WHERE { resource:Hermann_Graedener property:instrument ?j . VALUES ( ?j ) { ( resource:violin ) ( resource:organ ) } }
[]
common name
SYSTEM
YES
(Q66874,P1303,Q8355) (Q66874,P1303,Q1444)
action is_in
entity prev_answer
action find
entity Q66874
relation P1303
[ANSWER]
['Q66874', 'P1303', 'Q8355'] ['Q66874', 'P1303', 'Q1444']
ASK WHERE { resource:Q66874 property:P1303 ?j . VALUES ( ?j ) { ( resource:Q8355 ) ( resource:Q1444 ) } }
Yes
action is_in
entity prev_answer
action find
entity Hermann Graedener
relation instrument
['Hermann Graedener', 'instrument', 'violin'] ['Hermann Graedener', 'instrument', 'organ']
ASK WHERE { resource:Hermann_Graedener property:instrument ?j . VALUES ( ?j ) { ( resource:violin ) ( resource:organ ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q567598
P462
Q1075
USER
Which color is A Woman in Berlin associated with ?
(Q567598,P462,c(Q1075))
action filter_type
action find
entity Q567598
relation P462
type Q1075
['Q567598', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?q WHERE { resource:Q567598 property:P462 ?q . ?q rdf:type ontology:Q1075 }
A Woman in Berlin
action filter_type
action find
entity A Woman in Berlin
relation color
type color
['A Woman in Berlin', 'color', {'concept': 'color'}]
SELECT DISTINCT ?q WHERE { resource:A_Woman_in_Berlin property:color ?q . ?q rdf:type ontology:color }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q567598,P462,c(Q1075))
action filter_type
action find
entity Q567598
relation P462
type Q1075
A Woman in Berlin is associated with [ANSWER]
['Q567598', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?q WHERE { resource:Q567598 property:P462 ?q . ?q rdf:type ontology:Q1075 }
color
A Woman in Berlin is associated with color
color
action filter_type
action find
entity A Woman in Berlin
relation color
type color
['A Woman in Berlin', 'color', {'concept': 'color'}]
SELECT DISTINCT ?q WHERE { resource:A_Woman_in_Berlin property:color ?q . ?q rdf:type ontology:color }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q27790873
P1884
Q1075 Q95074 Q502895
USER
Which colors can be associated with hair of around the same number of fictional characters or people as purple ?
(c(Q95074)|c(Q502895),P1884,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q95074
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q27790873
relation P1884
type Q95074
type Q502895
[[{'concept': 'Q95074'}, {'concept': 'Q502895'}], 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:Q95074 ) ( ontology:Q502895 ) } . ?m rdf:type ?l } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P1884 resource:Q27790873 . { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q95074 ) } } } } . FILTER ( ?i = ?o ) }
purple
action approx
action union
action find_reverse_tuple_counts
relation hair color
type color
type fictional character
action find_reverse_tuple_counts
relation hair color
type color
type common name
action count
action filter_multi_types
action find_reverse
entity purple
relation hair color
type fictional character
type common name
[[{'concept': 'fictional character'}, {'concept': 'common name'}], 'hair color', {'concept': 'color'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:fictional_character ) ( ontology:common_name ) } . ?m rdf:type ?l } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:hair_color resource:purple . { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:common_name ) ( ontology:fictional_character ) } } } } . FILTER ( ?i = ?o ) }
[]
color fictional character common name
Q27790873 Q152357 Q19916539
SYSTEM
purple, red hair, orange hair
Q3142 Q19916539 Q18661358 Q4930092 Q2419551 Q26449910 Q5094009 Q27790873 Q1088 Q152357 Q6933946
(c(Q95074)|c(Q502895),P1884,c(Q1075))
action approx
action union
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q95074
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q27790873
relation P1884
type Q95074
type Q502895
[ANSWERS] can be associated with hair of around the same number of fictional characters or people as purple
[[{'concept': 'Q95074'}, {'concept': 'Q502895'}], 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:Q95074 ) ( ontology:Q502895 ) } . ?m rdf:type ?l } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P1884 resource:Q27790873 . { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q95074 ) } } } } . FILTER ( ?i = ?o ) }
red orange hair strawberry blond hair blue hair auburn green hair chestnut hair purple blue red hair white hair
Purple, red hair and orange hair can be associated with hair of around the same number of fictional characters or people as purple
purple red hair orange hair
action approx
action union
action find_reverse_tuple_counts
relation hair color
type color
type fictional character
action find_reverse_tuple_counts
relation hair color
type color
type common name
action count
action filter_multi_types
action find_reverse
entity purple
relation hair color
type fictional character
type common name
[[{'concept': 'fictional character'}, {'concept': 'common name'}], 'hair color', {'concept': 'color'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:fictional_character ) ( ontology:common_name ) } . ?m rdf:type ?l } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:hair_color resource:purple . { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:common_name ) ( ontology:fictional_character ) } } } } . FILTER ( ?i = ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q362
P361
Q3839081 Q350604
USER
How many disasters and armed conflicts are a component of World War II ?
(c(Q3839081),P361,Q362) (c(Q350604),P361,Q362)
action count
action union
action filter_type
action find_reverse
entity Q362
relation P361
type Q3839081
action filter_type
action find_reverse
entity Q362
relation P361
type Q350604
[{'concept': 'Q3839081'}, 'P361', 'Q362'] [{'concept': 'Q350604'}, 'P361', 'Q362']
SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { { ?f property:P361 resource:Q362 . ?f rdf:type ontology:Q3839081 } UNION { ?f property:P361 resource:Q362 . ?f rdf:type ontology:Q350604 } }
World War II
action count
action union
action filter_type
action find_reverse
entity World War II
relation part of
type disaster
action filter_type
action find_reverse
entity World War II
relation part of
type armed conflict
[{'concept': 'disaster'}, 'part of', 'World War II'] [{'concept': 'armed conflict'}, 'part of', 'World War II']
SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { { ?f property:part_of resource:World_War_II . ?f rdf:type ontology:disaster } UNION { ?f property:part_of resource:World_War_II . ?f rdf:type ontology:armed_conflict } }
[]
disaster armed conflict
SYSTEM
1 disasters and 7 armed conflicts
Q189266 Q134949 Q184425 Q74109 Q21900262 Q2558509 Q122100 Q154940
(c(Q3839081),P361,Q362) (c(Q350604),P361,Q362)
action count
action union
action filter_type
action find_reverse
entity Q362
relation P361
type Q3839081
action filter_type
action find_reverse
entity Q362
relation P361
type Q350604
[ANSWER]
[{'concept': 'Q3839081'}, 'P361', 'Q362'] [{'concept': 'Q350604'}, 'P361', 'Q362']
SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { { ?f property:P361 resource:Q362 . ?f rdf:type ontology:Q3839081 } UNION { ?f property:P361 resource:Q362 . ?f rdf:type ontology:Q350604 } }
Eastern Front Winter War Pacific War Albanian resistance during World War II Bombing of Miskolc Great Famine Continuation War Lapland War
1 disasters and 7 armed conflicts
action count
action union
action filter_type
action find_reverse
entity World War II
relation part of
type disaster
action filter_type
action find_reverse
entity World War II
relation part of
type armed conflict
[{'concept': 'disaster'}, 'part of', 'World War II'] [{'concept': 'armed conflict'}, 'part of', 'World War II']
SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { { ?f property:part_of resource:World_War_II . ?f rdf:type ontology:disaster } UNION { ?f property:part_of resource:World_War_II . ?f rdf:type ontology:armed_conflict } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q937267 Q27790873
P767 P1884
Q95074
USER
Which fictional characters have purple as color of hair and did Frank Thomas contribute to ?
AND((c(Q95074),P1884,Q27790873), (c(Q95074),P767,Q937267))
action filter_type
action intersection
action find_reverse
entity Q27790873
relation P1884
action find_reverse
entity Q937267
relation P767
type Q95074
{'AND': [[{'concept': 'Q95074'}, 'P1884', 'Q27790873'], [{'concept': 'Q95074'}, 'P767', 'Q937267']]}
SELECT DISTINCT ?p WHERE { ?p property:P1884 resource:Q27790873 . ?p property:P767 resource:Q937267 . ?p rdf:type ontology:Q95074 }
Frank Thomas purple
action filter_type
action intersection
action find_reverse
entity purple
relation hair color
action find_reverse
entity Frank Thomas
relation contributor
type fictional character
{'AND': [[{'concept': 'fictional character'}, 'hair color', 'purple'], [{'concept': 'fictional character'}, 'contributor', 'Frank Thomas']]}
SELECT DISTINCT ?p WHERE { ?p property:hair_color resource:purple . ?p property:contributor resource:Frank_Thomas . ?p rdf:type ontology:fictional_character }
[]
fictional character
Q2344068
SYSTEM
Madam Mim
Q2344068
AND((c(Q95074),P1884,Q27790873), (c(Q95074),P767,Q937267))
action filter_type
action intersection
action find_reverse
entity Q27790873
relation P1884
action find_reverse
entity Q937267
relation P767
type Q95074
[ANSWER] have purple as color of hair and did Frank Thomas contribute to
{'AND': [[{'concept': 'Q95074'}, 'P1884', 'Q27790873'], [{'concept': 'Q95074'}, 'P767', 'Q937267']]}
SELECT DISTINCT ?p WHERE { ?p property:P1884 resource:Q27790873 . ?p property:P767 resource:Q937267 . ?p rdf:type ontology:Q95074 }
Madam Mim
Madam Mim have purple as color of hair and did Frank Thomas contribute to
Madam Mim
action filter_type
action intersection
action find_reverse
entity purple
relation hair color
action find_reverse
entity Frank Thomas
relation contributor
type fictional character
{'AND': [[{'concept': 'fictional character'}, 'hair color', 'purple'], [{'concept': 'fictional character'}, 'contributor', 'Frank Thomas']]}
SELECT DISTINCT ?p WHERE { ?p property:hair_color resource:purple . ?p property:contributor resource:Frank_Thomas . ?p rdf:type ontology:fictional_character }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P607
Q198 Q502895 Q2235308
USER
How many wars did around 4472 people or ship types take part in ?
(c(Q502895)|c(Q2235308),P607,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
value 4472
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?m WHERE { VALUES ( ?x ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } . ?q rdf:type ?x } GROUP BY ?m } . FILTER ( ?k = 4472 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
value 4472
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?m WHERE { VALUES ( ?x ) { ( ontology:common_name ) ( ontology:ship_type ) } . ?q rdf:type ?x } GROUP BY ?m } . FILTER ( ?k = 4472 ) }
[]
war common name ship type
SYSTEM
49
Q8683 Q211855 Q1006311 Q795269 Q3067868 Q3778746 Q920894 Q81545 Q10859 Q163883 Q18121212 Q1021160 Q15860072 Q17984356 Q1072889 Q1980081 Q633862 Q209297 Q242352 Q2105495 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q4971401 Q2086498 Q1049945 Q75984 Q1021172 Q1021175 Q1122110 Q43378 Q8676 Q1127302 Q1052332 Q1070890 Q188972 Q12302518 Q475678 Q213394 Q17183365 Q17507684 Q179975 Q18159629 Q2672972 Q243620 Q79911 Q142529
(c(Q502895)|c(Q2235308),P607,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
value 4472
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?m WHERE { VALUES ( ?x ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } . ?q rdf:type ?x } GROUP BY ?m } . FILTER ( ?k = 4472 ) }
Cold War Finnish Civil War war of national liberation Sierra Leone Civil War Colombian Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War Ten-Day War American-led intervention in Syria Armagnac–Burgundian Civil War 2014–16 Russian military intervention in Ukraine Iraqi Civil War Chilean War of Independence Civil war in Afghanistan Cold War Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War British military intervention in the Sierra Leone Civil War First Barons' War Jacobite rising of 1745 Dirty War Republic of the Congo Civil War First Ivorian Civil War Civil war in Tajikistan Thousand Days' War American Civil War Estonian War of Independence War in Somalia Georgian Civil War Greek Civil War Civil war in Afghanistan Mexican Drug War Sri Lankan Civil War Sectarian violence in Iraq (2006–07) military intervention against ISIL Chinese Civil War American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War Algerian Civil War
49
action count
action approx
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
value 4472
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?m WHERE { VALUES ( ?x ) { ( ontology:common_name ) ( ontology:ship_type ) } . ?q rdf:type ?x } GROUP BY ?m } . FILTER ( ?k = 4472 ) }
[]