Simple Question (Direct)
Simple Question
Q492403
P20
Q56061
USER
Which administrative territory is the place of death of Andor Ákos ?
(Q492403,P20,c(Q56061))
action filter_type
action find
entity Q492403
relation P20
type Q56061
['Q492403', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q492403 property:P20 ?e }
Andor Ákos
action filter_type
action find
entity Andor Ákos
relation place of death
type administrative territorial entity
['Andor Ákos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Andor_Ákos property:place_of_death ?e }
[]
administrative territorial entity
Q1741
SYSTEM
Vienna
Q1741
(Q492403,P20,c(Q56061))
action filter_type
action find
entity Q492403
relation P20
type Q56061
[ANSWER] is the place of death of Andor Ákos
['Q492403', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q492403 property:P20 ?e }
Vienna
Vienna is the place of death of Andor Ákos
Vienna
action filter_type
action find
entity Andor Ákos
relation place of death
type administrative territorial entity
['Andor Ákos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Andor_Ákos property:place_of_death ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q492403
P607
Q198
USER
What was was Andor Ákos a part of ?
(Q492403,P607,c(Q198))
action filter_type
action find
entity Q492403
relation P607
type Q198
['Q492403', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q198 . resource:Q492403 property:P607 ?e }
Andor Ákos
action filter_type
action find
entity Andor Ákos
relation conflict
type war
['Andor Ákos', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:war . resource:Andor_Ákos property:conflict ?e }
[]
war
Q361
SYSTEM
World War I
Q361
(Q492403,P607,c(Q198))
action filter_type
action find
entity Q492403
relation P607
type Q198
Andor Ákos was a part of [ANSWER]
['Q492403', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q198 . resource:Q492403 property:P607 ?e }
World War I
Andor Ákos was a part of World War I
World War I
action filter_type
action find
entity Andor Ákos
relation conflict
type war
['Andor Ákos', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:war . resource:Andor_Ákos property:conflict ?e }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q198 Q178561 Q1190554
USER
Which wars are exactly 5 battles or events a portion of ?
(c(Q178561)|c(Q1190554),P361,c(Q198))
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q178561
action find_reverse_tuple_counts
relation P361
type Q198
type Q1190554
value 5
[[{'concept': 'Q178561'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?t WHERE { { ?y property:P361 ?t . ?t rdf:type ontology:Q198 . ?y rdf:type ontology:Q178561 } UNION { ?y property:P361 ?t . ?t rdf:type ontology:Q198 . ?y rdf:type ontology:Q1190554 } } GROUP BY ?t } . FILTER ( ?f = 5 ) }
action equal
action union
action find_reverse_tuple_counts
relation part of
type war
type battle
action find_reverse_tuple_counts
relation part of
type war
type event
value 5
[[{'concept': 'battle'}, {'concept': 'event'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?t WHERE { { ?y property:part_of ?t . ?t rdf:type ontology:war . ?y rdf:type ontology:battle } UNION { ?y property:part_of ?t . ?t rdf:type ontology:war . ?y rdf:type ontology:event } } GROUP BY ?t } . FILTER ( ?f = 5 ) }
[]
war battle event
Q17984356 Q920894 Q743768
SYSTEM
Iraqi Civil War, First Italian War of Independence, The Anarchy
Q920894 Q17984356 Q1049945 Q743768
(c(Q178561)|c(Q1190554),P361,c(Q198))
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q178561
action find_reverse_tuple_counts
relation P361
type Q198
type Q1190554
value 5
[ANSWERS] are exactly 5 battles or events a portion of
[[{'concept': 'Q178561'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?t WHERE { { ?y property:P361 ?t . ?t rdf:type ontology:Q198 . ?y rdf:type ontology:Q178561 } UNION { ?y property:P361 ?t . ?t rdf:type ontology:Q198 . ?y rdf:type ontology:Q1190554 } } GROUP BY ?t } . FILTER ( ?f = 5 ) }
First Italian War of Independence Iraqi Civil War Jacobite rising of 1745 The Anarchy
Iraqi Civil War, First Italian War of Independence and The Anarchy are exactly 5 battles or events a portion of
Iraqi Civil War First Italian War of Independence The Anarchy
action equal
action union
action find_reverse_tuple_counts
relation part of
type war
type battle
action find_reverse_tuple_counts
relation part of
type war
type event
value 5
[[{'concept': 'battle'}, {'concept': 'event'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?t WHERE { { ?y property:part_of ?t . ?t rdf:type ontology:war . ?y rdf:type ontology:battle } UNION { ?y property:part_of ?t . ?t rdf:type ontology:war . ?y rdf:type ontology:event } } GROUP BY ?t } . FILTER ( ?f = 5 ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q82955 Q920894
P106 P607
Q502895
USER
Which people did First Italian War of Independence fight in and are not working as politician ?
AND((c(Q502895),P607,Q920894), NOT((c(Q502895),P106,Q82955)))
action filter_type
action difference
action find_reverse
entity Q920894
relation P607
action find_reverse
entity Q82955
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P607', 'Q920894'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q82955']]}]}
SELECT DISTINCT ?b WHERE { ?b property:P607 resource:Q920894 . FILTER NOT EXISTS { ?b property:P106 resource:Q82955 } . ?b rdf:type ontology:Q502895 }
politician First Italian War of Independence
action filter_type
action difference
action find_reverse
entity First Italian War of Independence
relation conflict
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'conflict', 'First Italian War of Independence'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'politician']]}]}
SELECT DISTINCT ?b WHERE { ?b property:conflict resource:First_Italian_War_of_Independence . FILTER NOT EXISTS { ?b property:occupation resource:politician } . ?b rdf:type ontology:common_name }
[]
common name
Q78563 Q655149 Q670522 Q377783 Q528099
SYSTEM
Ludwig von Benedek, Alessandro Ferrero La Marmora, Francesco Nullo, Stevan Šupljikac, Luigi Palma di Cesnola
Q78563 Q655149 Q670522 Q377783 Q528099
AND((c(Q502895),P607,Q920894), NOT((c(Q502895),P106,Q82955)))
action filter_type
action difference
action find_reverse
entity Q920894
relation P607
action find_reverse
entity Q82955
relation P106
type Q502895
First Italian War of Independence fought in 1812 [ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P607', 'Q920894'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q82955']]}]}
SELECT DISTINCT ?b WHERE { ?b property:P607 resource:Q920894 . FILTER NOT EXISTS { ?b property:P106 resource:Q82955 } . ?b rdf:type ontology:Q502895 }
Ludwig von Benedek Alessandro Ferrero La Marmora Francesco Nullo Stevan Šupljikac Luigi Palma di Cesnola
First Italian War of Independence fought in 1812 Ludwig von Benedek, Alessandro Ferrero La Marmora, Francesco Nullo, Stevan Šupljikac and Luigi Palma di Cesnola
Ludwig von Benedek Alessandro Ferrero La Marmora Francesco Nullo Stevan Šupljikac Luigi Palma di Cesnola
action filter_type
action difference
action find_reverse
entity First Italian War of Independence
relation conflict
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'conflict', 'First Italian War of Independence'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'politician']]}]}
SELECT DISTINCT ?b WHERE { ?b property:conflict resource:First_Italian_War_of_Independence . FILTER NOT EXISTS { ?b property:occupation resource:politician } . ?b rdf:type ontology:common_name }
[]