Simple Question (Direct)
Simple Question
Q16013921
P607
Q198
USER
What was the war that Jerry Pacht took part in
(Q16013921,P607,c(Q198))
action filter_type
action find
entity Q16013921
relation P607
type Q198
['Q16013921', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?g WHERE { resource:Q16013921 property:P607 ?g . ?g rdf:type ontology:Q198 }
Jerry Pacht
action filter_type
action find
entity Jerry Pacht
relation conflict
type war
['Jerry Pacht', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?g WHERE { resource:Jerry_Pacht property:conflict ?g . ?g rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q16013921,P607,c(Q198))
action filter_type
action find
entity Q16013921
relation P607
type Q198
The war that Jerry Pacht took part in was during [ANSWER]
['Q16013921', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?g WHERE { resource:Q16013921 property:P607 ?g . ?g rdf:type ontology:Q198 }
World War II
The war that Jerry Pacht took part in was during World War II
World War II
action filter_type
action find
entity Jerry Pacht
relation conflict
type war
['Jerry Pacht', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?g WHERE { resource:Jerry_Pacht property:conflict ?g . ?g rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16013921
P106
Q12737077
USER
What does Jerry Pacht do for a living ?
(Q16013921,P106,c(Q12737077))
action filter_type
action find
entity Q16013921
relation P106
type Q12737077
['Q16013921', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q16013921 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Jerry Pacht
action filter_type
action find
entity Jerry Pacht
relation occupation
type occupation
['Jerry Pacht', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Jerry_Pacht property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q16533
SYSTEM
judge
Q16533
(Q16013921,P106,c(Q12737077))
action filter_type
action find
entity Q16013921
relation P106
type Q12737077
Jerry Pacht does not [ANSWER] for a living
['Q16013921', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q16013921 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
judge
Jerry Pacht does not judge for a living
judge
action filter_type
action find
entity Jerry Pacht
relation occupation
type occupation
['Jerry Pacht', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Jerry_Pacht property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q16013921
Q28640
USER
And which profession?
(Q16013921,P106,c(Q28640))
action filter_type
action find
entity Q16013921
relation P106
type Q28640
['Q16013921', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?c WHERE { resource:Q16013921 property:P106 ?c . ?c rdf:type ontology:Q28640 }
Jerry Pacht
action filter_type
action find
entity Jerry Pacht
relation occupation
type profession
['Jerry Pacht', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?c WHERE { resource:Jerry_Pacht property:occupation ?c . ?c rdf:type ontology:profession }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
(Q16013921,P106,c(Q28640))
action filter_type
action find
entity Q16013921
relation P106
type Q28640
[ANSWER]
['Q16013921', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?c WHERE { resource:Q16013921 property:P106 ?c . ?c rdf:type ontology:Q28640 }
lawyer
lawyer
action filter_type
action find
entity Jerry Pacht
relation occupation
type profession
['Jerry Pacht', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?c WHERE { resource:Jerry_Pacht property:occupation ?c . ?c rdf:type ontology:profession }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q40348 Q717818 Q358325
P417
Q502895
USER
Does that profession have György Kenéz and Ivo of Kermartin as their patron saint ?
(Q40348,P417,Q717818) (Q40348,P417,Q358325)
action is_in
entity Q40348
action intersection
action find_reverse
entity Q717818
relation P417
action find_reverse
entity Q358325
relation P417
['Q40348', 'P417', 'Q717818'] ['Q40348', 'P417', 'Q358325']
ASK WHERE { resource:Q40348 property:P417 resource:Q717818 . resource:Q40348 property:P417 resource:Q358325 }
lawyer György Kenéz Ivo of Kermartin
action is_in
entity lawyer
action intersection
action find_reverse
entity György Kenéz
relation patron saint
action find_reverse
entity Ivo of Kermartin
relation patron saint
['lawyer', 'patron saint', 'György Kenéz'] ['lawyer', 'patron saint', 'Ivo of Kermartin']
ASK WHERE { resource:lawyer property:patron_saint resource:György_Kenéz . resource:lawyer property:patron_saint resource:Ivo_of_Kermartin }
[]
common name
SYSTEM
NO and YES respectively
(Q40348,P417,Q717818) (Q40348,P417,Q358325)
action is_in
entity Q40348
action intersection
action find_reverse
entity Q717818
relation P417
action find_reverse
entity Q358325
relation P417
[ANSWER]
['Q40348', 'P417', 'Q717818'] ['Q40348', 'P417', 'Q358325']
ASK WHERE { resource:Q40348 property:P417 resource:Q717818 . resource:Q40348 property:P417 resource:Q358325 }
NO and YES respectively
action is_in
entity lawyer
action intersection
action find_reverse
entity György Kenéz
relation patron saint
action find_reverse
entity Ivo of Kermartin
relation patron saint
['lawyer', 'patron saint', 'György Kenéz'] ['lawyer', 'patron saint', 'Ivo of Kermartin']
ASK WHERE { resource:lawyer property:patron_saint resource:György_Kenéz . resource:lawyer property:patron_saint resource:Ivo_of_Kermartin }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q361
P361
Q198 Q645883 Q618779
USER
Which wars are less number of military operations and awards a portion of than World War I ?
(c(Q645883)|c(Q618779),P361,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action find_reverse_tuple_counts
relation P361
type Q198
type Q618779
action count
action filter_multi_types
action find_reverse
entity Q361
relation P361
type Q645883
type Q618779
[[{'concept': 'Q645883'}, {'concept': 'Q618779'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?m ) WHERE { { ?w rdf:type ontology:Q198 . ?h rdf:type ontology:Q618779 . ?h property:P361 ?w } UNION { ?h property:P361 ?w . ?h rdf:type ontology:Q645883 . ?w rdf:type ontology:Q198 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { { ?q rdf:type ontology:Q645883 } UNION { ?q rdf:type ontology:Q618779 } } . ?q property:P361 resource:Q361 } } . FILTER ( ?m < ?g ) }
World War I
action less
action union
action find_reverse_tuple_counts
relation part of
type war
type military operation
action find_reverse_tuple_counts
relation part of
type war
type award
action count
action filter_multi_types
action find_reverse
entity World War I
relation part of
type military operation
type award
[[{'concept': 'military operation'}, {'concept': 'award'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?m ) WHERE { { ?w rdf:type ontology:war . ?h rdf:type ontology:award . ?h property:part_of ?w } UNION { ?h property:part_of ?w . ?h rdf:type ontology:military_operation . ?w rdf:type ontology:war } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { { ?q rdf:type ontology:military_operation } UNION { ?q rdf:type ontology:award } } . ?q property:part_of resource:World_War_I } } . FILTER ( ?m < ?g ) }
[]
war military operation award
Q545449 Q17507684 Q79911
SYSTEM
Iraq War, military intervention against ISIL, Russian Civil War
Q8683 Q211855 Q4783165 Q795269 Q3778746 Q920894 Q81545 Q10859 Q18121212 Q1021160 Q1072889 Q1758829 Q209297 Q242352 Q2105495 Q5334383 Q545449 Q2658255 Q16954835 Q208484 Q1432624 Q2086498 Q1238338 Q15059994 Q1049945 Q1127302 Q1052332 Q475678 Q743768 Q213394 Q17507684 Q18159629 Q2672972 Q243620 Q79911
(c(Q645883)|c(Q618779),P361,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action find_reverse_tuple_counts
relation P361
type Q198
type Q618779
action count
action filter_multi_types
action find_reverse
entity Q361
relation P361
type Q645883
type Q618779
[ANSWERS] are less number of military operations and awards a portion of than World War I
[[{'concept': 'Q645883'}, {'concept': 'Q618779'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?m ) WHERE { { ?w rdf:type ontology:Q198 . ?h rdf:type ontology:Q618779 . ?h property:P361 ?w } UNION { ?h property:P361 ?w . ?h rdf:type ontology:Q645883 . ?w rdf:type ontology:Q198 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { { ?q rdf:type ontology:Q645883 } UNION { ?q rdf:type ontology:Q618779 } } . ?q property:P361 resource:Q361 } } . FILTER ( ?m < ?g ) }
Cold War Finnish Civil War Arab Cold War Sierra Leone Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War American-led intervention in Syria Armagnac–Burgundian Civil War Chilean War of Independence urban guerrilla warfare Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Ecuadorian War of Independence Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War Genkō War First Barons' War Caesar's Civil War Iran–Israel proxy conflict Jacobite rising of 1745 Estonian War of Independence War in Somalia Mexican Drug War The Anarchy Sri Lankan Civil War military intervention against ISIL American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War
Iraq War, military intervention against ISIL and Russian Civil War are less number of military operations and awards a portion of than World War I
Iraq War military intervention against ISIL Russian Civil War
action less
action union
action find_reverse_tuple_counts
relation part of
type war
type military operation
action find_reverse_tuple_counts
relation part of
type war
type award
action count
action filter_multi_types
action find_reverse
entity World War I
relation part of
type military operation
type award
[[{'concept': 'military operation'}, {'concept': 'award'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?m ) WHERE { { ?w rdf:type ontology:war . ?h rdf:type ontology:award . ?h property:part_of ?w } UNION { ?h property:part_of ?w . ?h rdf:type ontology:military_operation . ?w rdf:type ontology:war } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { { ?q rdf:type ontology:military_operation } UNION { ?q rdf:type ontology:award } } . ?q property:part_of resource:World_War_I } } . FILTER ( ?m < ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q8676
P361
Q198 Q645883 Q618779
USER
And also tell me about American Civil War?
(c(Q645883)|c(Q618779),P361,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action find_reverse_tuple_counts
relation P361
type Q198
type Q618779
action count
action filter_multi_types
action find_reverse
entity Q8676
relation P361
type Q645883
type Q618779
[[{'concept': 'Q645883'}, {'concept': 'Q618779'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?i WHERE { { ?s property:P361 ?i . ?i rdf:type ontology:Q198 . ?s rdf:type ontology:Q645883 } UNION { ?i rdf:type ontology:Q198 . ?s rdf:type ontology:Q618779 . ?s property:P361 ?i } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:P361 resource:Q8676 . { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:Q645883 ) ( ontology:Q618779 ) } } } } . FILTER ( ?l < ?p ) }
American Civil War
action less
action union
action find_reverse_tuple_counts
relation part of
type war
type military operation
action find_reverse_tuple_counts
relation part of
type war
type award
action count
action filter_multi_types
action find_reverse
entity American Civil War
relation part of
type military operation
type award
[[{'concept': 'military operation'}, {'concept': 'award'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?i WHERE { { ?s property:part_of ?i . ?i rdf:type ontology:war . ?s rdf:type ontology:military_operation } UNION { ?i rdf:type ontology:war . ?s rdf:type ontology:award . ?s property:part_of ?i } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:part_of resource:American_Civil_War . { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:military_operation ) ( ontology:award ) } } } } . FILTER ( ?l < ?p ) }
[]
war military operation award
Q545449 Q17984356 Q17507684
SYSTEM
Iraq War, Iraqi Civil War, military intervention against ISIL
Q8683 Q211855 Q4783165 Q795269 Q3778746 Q920894 Q81545 Q10859 Q18121212 Q361 Q1021160 Q17984356 Q1072889 Q1758829 Q209297 Q242352 Q2105495 Q5334383 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q1432624 Q2086498 Q1238338 Q15059994 Q1049945 Q1127302 Q1052332 Q475678 Q743768 Q213394 Q17507684 Q18159629 Q2672972 Q243620 Q79911
(c(Q645883)|c(Q618779),P361,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action find_reverse_tuple_counts
relation P361
type Q198
type Q618779
action count
action filter_multi_types
action find_reverse
entity Q8676
relation P361
type Q645883
type Q618779
[ANSWERS]
[[{'concept': 'Q645883'}, {'concept': 'Q618779'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?i WHERE { { ?s property:P361 ?i . ?i rdf:type ontology:Q198 . ?s rdf:type ontology:Q645883 } UNION { ?i rdf:type ontology:Q198 . ?s rdf:type ontology:Q618779 . ?s property:P361 ?i } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:P361 resource:Q8676 . { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:Q645883 ) ( ontology:Q618779 ) } } } } . FILTER ( ?l < ?p ) }
Cold War Finnish Civil War Arab Cold War Sierra Leone Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War American-led intervention in Syria World War I Armagnac–Burgundian Civil War Iraqi Civil War Chilean War of Independence urban guerrilla warfare Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Ecuadorian War of Independence Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War Genkō War First Barons' War Caesar's Civil War Iran–Israel proxy conflict Jacobite rising of 1745 Estonian War of Independence War in Somalia Mexican Drug War The Anarchy Sri Lankan Civil War military intervention against ISIL American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War
Iraq War Iraqi Civil War military intervention against ISIL
action less
action union
action find_reverse_tuple_counts
relation part of
type war
type military operation
action find_reverse_tuple_counts
relation part of
type war
type award
action count
action filter_multi_types
action find_reverse
entity American Civil War
relation part of
type military operation
type award
[[{'concept': 'military operation'}, {'concept': 'award'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?i WHERE { { ?s property:part_of ?i . ?i rdf:type ontology:war . ?s rdf:type ontology:military_operation } UNION { ?i rdf:type ontology:war . ?s rdf:type ontology:award . ?s property:part_of ?i } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:part_of resource:American_Civil_War . { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:military_operation ) ( ontology:award ) } } } } . FILTER ( ?l < ?p ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q545449
P790
Q43229
USER
Who approves Iraq War ?
(Q545449,P790,c(Q43229))
action filter_type
action find
entity Q545449
relation P790
type Q43229
['Q545449', 'P790', {'concept': 'Q43229'}]
SELECT DISTINCT ?p WHERE { resource:Q545449 property:P790 ?p . ?p rdf:type ontology:Q43229 }
Iraq War
action filter_type
action find
entity Iraq War
relation approved by
type organization
['Iraq War', 'approved by', {'concept': 'organization'}]
SELECT DISTINCT ?p WHERE { resource:Iraq_War property:approved_by ?p . ?p rdf:type ontology:organization }
[]
organization
Q464135
SYSTEM
American Enterprise Institute
Q464135
(Q545449,P790,c(Q43229))
action filter_type
action find
entity Q545449
relation P790
type Q43229
[ANSWER] approves Iraq War
['Q545449', 'P790', {'concept': 'Q43229'}]
SELECT DISTINCT ?p WHERE { resource:Q545449 property:P790 ?p . ?p rdf:type ontology:Q43229 }
American Enterprise Institute
American Enterprise Institute approves Iraq War
American Enterprise Institute
action filter_type
action find
entity Iraq War
relation approved by
type organization
['Iraq War', 'approved by', {'concept': 'organization'}]
SELECT DISTINCT ?p WHERE { resource:Iraq_War property:approved_by ?p . ?p rdf:type ontology:organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2495855
Q43229
USER
And how about University of Illinois/NCSA Open Source License?
(Q2495855,P790,c(Q43229))
action filter_type
action find
entity Q2495855
relation P790
type Q43229
['Q2495855', 'P790', {'concept': 'Q43229'}]
SELECT DISTINCT ?b WHERE { resource:Q2495855 property:P790 ?b . ?b rdf:type ontology:Q43229 }
University of Illinois/NCSA Open Source License
action filter_type
action find
entity University of Illinois/NCSA Open Source License
relation approved by
type organization
['University of Illinois/NCSA Open Source License', 'approved by', {'concept': 'organization'}]
SELECT DISTINCT ?b WHERE { resource:University_of_Illinois/NCSA_Open_Source_License property:approved_by ?b . ?b rdf:type ontology:organization }
[]
organization
Q845918 Q21517203
SYSTEM
Open Source Initiative, Copyfree Initiative
Q845918 Q21517203
(Q2495855,P790,c(Q43229))
action filter_type
action find
entity Q2495855
relation P790
type Q43229
[ANSWERS]
['Q2495855', 'P790', {'concept': 'Q43229'}]
SELECT DISTINCT ?b WHERE { resource:Q2495855 property:P790 ?b . ?b rdf:type ontology:Q43229 }
Open Source Initiative Copyfree Initiative
Open Source Initiative Copyfree Initiative
action filter_type
action find
entity University of Illinois/NCSA Open Source License
relation approved by
type organization
['University of Illinois/NCSA Open Source License', 'approved by', {'concept': 'organization'}]
SELECT DISTINCT ?b WHERE { resource:University_of_Illinois/NCSA_Open_Source_License property:approved_by ?b . ?b rdf:type ontology:organization }
[]