Simple Question (Direct)
Simple Question
Q1820832
P937
Q56061
USER
Which is the work location of Leslie Orme Wilson ?
(Q1820832,P937,c(Q56061))
action filter_type
action find
entity Q1820832
relation P937
type Q56061
['Q1820832', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1820832 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Leslie Orme Wilson
action filter_type
action find
entity Leslie Orme Wilson
relation work location
type administrative territorial entity
['Leslie Orme Wilson', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Leslie_Orme_Wilson property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q1820832,P937,c(Q56061))
action filter_type
action find
entity Q1820832
relation P937
type Q56061
[ANSWER] is the work location of Leslie Orme Wilson
['Q1820832', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1820832 property:P937 ?a . ?a rdf:type ontology:Q56061 }
London
London is the work location of Leslie Orme Wilson
London
action filter_type
action find
entity Leslie Orme Wilson
relation work location
type administrative territorial entity
['Leslie Orme Wilson', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Leslie_Orme_Wilson property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1820832
P607
Q198
USER
What was was Leslie Orme Wilson a part of ?
(Q1820832,P607,c(Q198))
action filter_type
action find
entity Q1820832
relation P607
type Q198
['Q1820832', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?g WHERE { resource:Q1820832 property:P607 ?g . ?g rdf:type ontology:Q198 }
Leslie Orme Wilson
action filter_type
action find
entity Leslie Orme Wilson
relation conflict
type war
['Leslie Orme Wilson', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?g WHERE { resource:Leslie_Orme_Wilson property:conflict ?g . ?g rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q1820832,P607,c(Q198))
action filter_type
action find
entity Q1820832
relation P607
type Q198
Leslie Orme Wilson was a part of [ANSWER]
['Q1820832', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?g WHERE { resource:Q1820832 property:P607 ?g . ?g rdf:type ontology:Q198 }
World War I
Leslie Orme Wilson was a part of World War I
World War I
action filter_type
action find
entity Leslie Orme Wilson
relation conflict
type war
['Leslie Orme Wilson', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?g WHERE { resource:Leslie_Orme_Wilson property:conflict ?g . ?g rdf:type ontology:war }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q65710 Q1820832
P607
Q198
USER
And also Hans Kundt
AND((Q1820832,P607,c(Q198)), (Q65710,P607,c(Q198)))
action filter_type
action intersection
action find
entity Q1820832
relation P607
action find
entity Q65710
relation P607
type Q198
{'AND': [['Q1820832', 'P607', {'concept': 'Q198'}], ['Q65710', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?a WHERE { resource:Q1820832 property:P607 ?a . resource:Q65710 property:P607 ?a . ?a rdf:type ontology:Q198 }
Hans Kundt Leslie Orme Wilson
action filter_type
action intersection
action find
entity Leslie Orme Wilson
relation conflict
action find
entity Hans Kundt
relation conflict
type war
{'AND': [['Leslie Orme Wilson', 'conflict', {'concept': 'war'}], ['Hans Kundt', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?a WHERE { resource:Leslie_Orme_Wilson property:conflict ?a . resource:Hans_Kundt property:conflict ?a . ?a rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
AND((Q1820832,P607,c(Q198)), (Q65710,P607,c(Q198)))
action filter_type
action intersection
action find
entity Q1820832
relation P607
action find
entity Q65710
relation P607
type Q198
[ANSWER]
{'AND': [['Q1820832', 'P607', {'concept': 'Q198'}], ['Q65710', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?a WHERE { resource:Q1820832 property:P607 ?a . resource:Q65710 property:P607 ?a . ?a rdf:type ontology:Q198 }
World War I
World War I
action filter_type
action intersection
action find
entity Leslie Orme Wilson
relation conflict
action find
entity Hans Kundt
relation conflict
type war
{'AND': [['Leslie Orme Wilson', 'conflict', {'concept': 'war'}], ['Hans Kundt', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?a WHERE { resource:Leslie_Orme_Wilson property:conflict ?a . resource:Hans_Kundt property:conflict ?a . ?a rdf:type ontology:war }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q84
P190
Q56061
USER
How many administrative territories are twin towns of London ?
(Q84,P190,c(Q56061))
action count
action filter_type
action find
entity Q84
relation P190
type Q56061
['Q84', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Q84 property:P190 ?o . ?o rdf:type ontology:Q56061 }
London
action count
action filter_type
action find
entity London
relation sister city
type administrative territorial entity
['London', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:London property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
22
Q8686 Q1353 Q34820 Q649 Q472 Q9248 Q987 Q1156 Q3630 Q466221 Q3561 Q64 Q23564 Q1850 Q585 Q406 Q34647 Q956 Q159273 Q1490 Q65 Q60
(Q84,P190,c(Q56061))
action count
action filter_type
action find
entity Q84
relation P190
type Q56061
[ANSWER]
['Q84', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Q84 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Shanghai Delhi Santo Domingo Moscow Sofia Baku New Delhi Mumbai Jakarta Sylhet Algiers Berlin Podgorica Phnom Penh Oslo Istanbul Johannesburg Beijing Arequipa Tokyo Los Angeles New York City
22
action count
action filter_type
action find
entity London
relation sister city
type administrative territorial entity
['London', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:London property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q157061
P190
Q56061
USER
And what about Gevgelija?
(Q157061,P190,c(Q56061))
action count
action filter_type
action find
entity Q157061
relation P190
type Q56061
['Q157061', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:Q56061 . resource:Q157061 property:P190 ?n }
Gevgelija
action count
action filter_type
action find
entity Gevgelija
relation sister city
type administrative territorial entity
['Gevgelija', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Gevgelija property:sister_city ?n }
[]
administrative territorial entity
SYSTEM
4
Q192155 Q309341 Q15916 Q326312
(Q157061,P190,c(Q56061))
action count
action filter_type
action find
entity Q157061
relation P190
type Q56061
[ANSWER]
['Q157061', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:Q56061 . resource:Q157061 property:P190 ?n }
Kotka Inđija Sežana Sevlievo
4
action count
action filter_type
action find
entity Gevgelija
relation sister city
type administrative territorial entity
['Gevgelija', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Gevgelija property:sister_city ?n }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q36091
Q56061
USER
And also tell me about Minneapolis?
(Q36091,P190,c(Q56061))
action count
action filter_type
action find
entity Q36091
relation P190
type Q56061
['Q36091', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Q36091 property:P190 ?u . ?u rdf:type ontology:Q56061 }
Minneapolis
action count
action filter_type
action find
entity Minneapolis
relation sister city
type administrative territorial entity
['Minneapolis', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Minneapolis property:sister_city ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
3
(Q36091,P190,c(Q56061))
action count
action filter_type
action find
entity Q36091
relation P190
type Q56061
[ANSWER]
['Q36091', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Q36091 property:P190 ?u . ?u rdf:type ontology:Q56061 }
3
action count
action filter_type
action find
entity Minneapolis
relation sister city
type administrative territorial entity
['Minneapolis', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Minneapolis property:sister_city ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q795269
P361
Q198 Q176799 Q350604
USER
Which wars are more number of military units and armed conflicts a part of than Sierra Leone Civil War ?
(c(Q176799)|c(Q350604),P361,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action count
action filter_multi_types
action find_reverse
entity Q795269
relation P361
type Q176799
type Q350604
[[{'concept': 'Q176799'}, {'concept': 'Q350604'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P361 resource:Q795269 . { { ?c rdf:type ontology:Q176799 } UNION { ?c rdf:type ontology:Q350604 } } } } . FILTER ( ?q > ?n ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?g WHERE { { ?j property:P361 ?g . ?j rdf:type ontology:Q176799 . ?g rdf:type ontology:Q198 } UNION { ?g rdf:type ontology:Q198 . ?j rdf:type ontology:Q350604 . ?j property:P361 ?g } } GROUP BY ?g } }
Sierra Leone Civil War
action greater
action union
action find_reverse_tuple_counts
relation part of
type war
type military unit
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action count
action filter_multi_types
action find_reverse
entity Sierra Leone Civil War
relation part of
type military unit
type armed conflict
[[{'concept': 'military unit'}, {'concept': 'armed conflict'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:part_of resource:Sierra_Leone_Civil_War . { { ?c rdf:type ontology:military_unit } UNION { ?c rdf:type ontology:armed_conflict } } } } . FILTER ( ?q > ?n ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?g WHERE { { ?j property:part_of ?g . ?j rdf:type ontology:military_unit . ?g rdf:type ontology:war } UNION { ?g rdf:type ontology:war . ?j rdf:type ontology:armed_conflict . ?j property:part_of ?g } } GROUP BY ?g } }
[]
war military unit armed conflict
Q17984356 Q79911 Q362
SYSTEM
Iraqi Civil War, Russian Civil War, World War II
Q8683 Q4783165 Q3778746 Q362 Q17984356 Q242352 Q178810 Q16954835 Q15059994 Q8676 Q2672972 Q243620 Q79911
(c(Q176799)|c(Q350604),P361,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action count
action filter_multi_types
action find_reverse
entity Q795269
relation P361
type Q176799
type Q350604
[ANSWERS] are more number of military units and armed conflicts a part of than Sierra Leone Civil War
[[{'concept': 'Q176799'}, {'concept': 'Q350604'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P361 resource:Q795269 . { { ?c rdf:type ontology:Q176799 } UNION { ?c rdf:type ontology:Q350604 } } } } . FILTER ( ?q > ?n ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?g WHERE { { ?j property:P361 ?g . ?j rdf:type ontology:Q176799 . ?g rdf:type ontology:Q198 } UNION { ?g rdf:type ontology:Q198 . ?j rdf:type ontology:Q350604 . ?j property:P361 ?g } } GROUP BY ?g } }
Cold War Arab Cold War Sioux Wars World War II Iraqi Civil War Yugoslav Wars Syrian Civil War Nagorno-Karabakh conflict Iran–Israel proxy conflict American Civil War Uruguayan Civil War Somali Civil War Russian Civil War
Iraqi Civil War, Russian Civil War and World War II are more number of military units and armed conflicts a part of than Sierra Leone Civil War
Iraqi Civil War Russian Civil War World War II
action greater
action union
action find_reverse_tuple_counts
relation part of
type war
type military unit
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action count
action filter_multi_types
action find_reverse
entity Sierra Leone Civil War
relation part of
type military unit
type armed conflict
[[{'concept': 'military unit'}, {'concept': 'armed conflict'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:part_of resource:Sierra_Leone_Civil_War . { { ?c rdf:type ontology:military_unit } UNION { ?c rdf:type ontology:armed_conflict } } } } . FILTER ( ?q > ?n ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?g WHERE { { ?j property:part_of ?g . ?j rdf:type ontology:military_unit . ?g rdf:type ontology:war } UNION { ?g rdf:type ontology:war . ?j rdf:type ontology:armed_conflict . ?j property:part_of ?g } } GROUP BY ?g } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3778746
P361
Q198 Q176799 Q350604
USER
And how about Sioux Wars?
(c(Q176799)|c(Q350604),P361,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action count
action filter_multi_types
action find_reverse
entity Q3778746
relation P361
type Q176799
type Q350604
[[{'concept': 'Q176799'}, {'concept': 'Q350604'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:P361 ?y . ?y rdf:type ontology:Q198 . ?c rdf:type ontology:Q350604 } UNION { ?c property:P361 ?y . ?y rdf:type ontology:Q198 . ?c rdf:type ontology:Q176799 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:P361 resource:Q3778746 . { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:Q176799 ) ( ontology:Q350604 ) } } } } . FILTER ( ?e > ?i ) }
Sioux Wars
action greater
action union
action find_reverse_tuple_counts
relation part of
type war
type military unit
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action count
action filter_multi_types
action find_reverse
entity Sioux Wars
relation part of
type military unit
type armed conflict
[[{'concept': 'military unit'}, {'concept': 'armed conflict'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:part_of ?y . ?y rdf:type ontology:war . ?c rdf:type ontology:armed_conflict } UNION { ?c property:part_of ?y . ?y rdf:type ontology:war . ?c rdf:type ontology:military_unit } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:part_of resource:Sioux_Wars . { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:military_unit ) ( ontology:armed_conflict ) } } } } . FILTER ( ?e > ?i ) }
[]
war military unit armed conflict
Q8683 Q362
SYSTEM
Cold War, World War II
Q8683 Q362
(c(Q176799)|c(Q350604),P361,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action count
action filter_multi_types
action find_reverse
entity Q3778746
relation P361
type Q176799
type Q350604
[ANSWERS]
[[{'concept': 'Q176799'}, {'concept': 'Q350604'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:P361 ?y . ?y rdf:type ontology:Q198 . ?c rdf:type ontology:Q350604 } UNION { ?c property:P361 ?y . ?y rdf:type ontology:Q198 . ?c rdf:type ontology:Q176799 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:P361 resource:Q3778746 . { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:Q176799 ) ( ontology:Q350604 ) } } } } . FILTER ( ?e > ?i ) }
Cold War World War II
Cold War World War II
action greater
action union
action find_reverse_tuple_counts
relation part of
type war
type military unit
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action count
action filter_multi_types
action find_reverse
entity Sioux Wars
relation part of
type military unit
type armed conflict
[[{'concept': 'military unit'}, {'concept': 'armed conflict'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:part_of ?y . ?y rdf:type ontology:war . ?c rdf:type ontology:armed_conflict } UNION { ?c property:part_of ?y . ?y rdf:type ontology:war . ?c rdf:type ontology:military_unit } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { ?d property:part_of resource:Sioux_Wars . { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:military_unit ) ( ontology:armed_conflict ) } } } } . FILTER ( ?e > ?i ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1537955
P607
Q502895
USER
Did those wars take part in Gordon Blake ?
(Q1537955,P607,Q8683) (Q1537955,P607,Q362)
action is_in
entity prev_answer
action find
entity Q1537955
relation P607
['Q1537955', 'P607', 'Q8683'] ['Q1537955', 'P607', 'Q362']
ASK WHERE { VALUES ( ?k ) { ( resource:Q8683 ) ( resource:Q362 ) } . resource:Q1537955 property:P607 ?k }
Gordon Blake
action is_in
entity prev_answer
action find
entity Gordon Blake
relation conflict
['Gordon Blake', 'conflict', 'Cold War'] ['Gordon Blake', 'conflict', 'World War II']
ASK WHERE { VALUES ( ?k ) { ( resource:Cold_War ) ( resource:World_War_II ) } . resource:Gordon_Blake property:conflict ?k }
[]
common name
SYSTEM
YES
(Q1537955,P607,Q8683) (Q1537955,P607,Q362)
action is_in
entity prev_answer
action find
entity Q1537955
relation P607
[ANSWER]
['Q1537955', 'P607', 'Q8683'] ['Q1537955', 'P607', 'Q362']
ASK WHERE { VALUES ( ?k ) { ( resource:Q8683 ) ( resource:Q362 ) } . resource:Q1537955 property:P607 ?k }
Yes
action is_in
entity prev_answer
action find
entity Gordon Blake
relation conflict
['Gordon Blake', 'conflict', 'Cold War'] ['Gordon Blake', 'conflict', 'World War II']
ASK WHERE { VALUES ( ?k ) { ( resource:Cold_War ) ( resource:World_War_II ) } . resource:Gordon_Blake property:conflict ?k }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7488336 Q359843
P20
Q56061
USER
How many administrative territories did Shane del Rosario or Johann Esch and Heinrich Voes expire ?
(Q7488336,P20,c(Q56061)) (Q359843,P20,c(Q56061))
action count
action union
action filter_type
action find
entity Q7488336
relation P20
type Q56061
action filter_type
action find
entity Q359843
relation P20
type Q56061
['Q7488336', 'P20', {'concept': 'Q56061'}] ['Q359843', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { VALUES ( ?v ) { ( resource:Q7488336 ) ( resource:Q359843 ) } . ?v property:P20 ?j }
Shane del Rosario Johann Esch and Heinrich Voes
action count
action union
action filter_type
action find
entity Shane del Rosario
relation place of death
type administrative territorial entity
action filter_type
action find
entity Johann Esch and Heinrich Voes
relation place of death
type administrative territorial entity
['Shane del Rosario', 'place of death', {'concept': 'administrative territorial entity'}] ['Johann Esch and Heinrich Voes', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { VALUES ( ?v ) { ( resource:Shane_del_Rosario ) ( resource:Johann_Esch_and_Heinrich_Voes ) } . ?v property:place_of_death ?j }
[]
administrative territorial entity
SYSTEM
2
Q268873 Q239
(Q7488336,P20,c(Q56061)) (Q359843,P20,c(Q56061))
action count
action union
action filter_type
action find
entity Q7488336
relation P20
type Q56061
action filter_type
action find
entity Q359843
relation P20
type Q56061
[ANSWER]
['Q7488336', 'P20', {'concept': 'Q56061'}] ['Q359843', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { VALUES ( ?v ) { ( resource:Q7488336 ) ( resource:Q359843 ) } . ?v property:P20 ?j }
Newport Beach Brussels
2
action count
action union
action filter_type
action find
entity Shane del Rosario
relation place of death
type administrative territorial entity
action filter_type
action find
entity Johann Esch and Heinrich Voes
relation place of death
type administrative territorial entity
['Shane del Rosario', 'place of death', {'concept': 'administrative territorial entity'}] ['Johann Esch and Heinrich Voes', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { VALUES ( ?v ) { ( resource:Shane_del_Rosario ) ( resource:Johann_Esch_and_Heinrich_Voes ) } . ?v property:place_of_death ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7488336
P734
Q82799
USER
Who is associated with that person ?
action filter_type
action find
entity Q7488336
relation P734
type Q82799
SELECT DISTINCT ?v WHERE { resource:Q7488336 property:P734 ?v . ?v rdf:type ontology:Q82799 }
Shane del Rosario
action filter_type
action find
entity Shane del Rosario
relation family name
type name
SELECT DISTINCT ?v WHERE { resource:Shane_del_Rosario property:family_name ?v . ?v rdf:type ontology:name }
[]
name
Q20722836
SYSTEM
del Rosario
Q20722836
action filter_type
action find
entity Q7488336
relation P734
type Q82799
[ANSWER] is associated with that person
SELECT DISTINCT ?v WHERE { resource:Q7488336 property:P734 ?v . ?v rdf:type ontology:Q82799 }
del Rosario
Del Rosario is associated with that person
del Rosario
action filter_type
action find
entity Shane del Rosario
relation family name
type name
SELECT DISTINCT ?v WHERE { resource:Shane_del_Rosario property:family_name ?v . ?v rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12257999 Q84
P19 P190
Q56061
USER
Which administrative territories are the sister cities of London or were Frantzisko Laphitz born at ?
OR((Q84,P190,c(Q56061)), (Q12257999,P19,c(Q56061)))
action filter_type
action union
action find
entity Q84
relation P190
action find
entity Q12257999
relation P19
type Q56061
{'OR': [['Q84', 'P190', {'concept': 'Q56061'}], ['Q12257999', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q12257999 property:P19 ?q } UNION { resource:Q84 property:P190 ?q } } . ?q rdf:type ontology:Q56061 }
Frantzisko Laphitz London
action filter_type
action union
action find
entity London
relation sister city
action find
entity Frantzisko Laphitz
relation place of birth
type administrative territorial entity
{'OR': [['London', 'sister city', {'concept': 'administrative territorial entity'}], ['Frantzisko Laphitz', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Frantzisko_Laphitz property:place_of_birth ?q } UNION { resource:London property:sister_city ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q23564 Q8686 Q3630 Q2861457 Q1353 Q1490 Q1156 Q64 Q65 Q34647
SYSTEM
Some of them are Podgorica, Shanghai, Jakarta, Arizkun, Delhi, Tokyo, Mumbai, Berlin, Los Angeles, Johannesburg
Q8686 Q1353 Q649 Q472 Q34820 Q9248 Q2861457 Q987 Q1156 Q3630 Q466221 Q3561 Q1490 Q65 Q1850 Q585 Q406 Q34647 Q956 Q159273 Q64 Q23564 Q60
OR((Q84,P190,c(Q56061)), (Q12257999,P19,c(Q56061)))
action filter_type
action union
action find
entity Q84
relation P190
action find
entity Q12257999
relation P19
type Q56061
[ANSWERS] are the sister cities of London or were Frantzisko Laphitz born at
{'OR': [['Q84', 'P190', {'concept': 'Q56061'}], ['Q12257999', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q12257999 property:P19 ?q } UNION { resource:Q84 property:P190 ?q } } . ?q rdf:type ontology:Q56061 }
Shanghai Delhi Moscow Sofia Santo Domingo Baku Arizkun New Delhi Mumbai Jakarta Sylhet Algiers Tokyo Los Angeles Phnom Penh Oslo Istanbul Johannesburg Beijing Arequipa Berlin Podgorica New York City
Podgorica, Shanghai, Jakarta, Arizkun, Delhi, Tokyo, Mumbai, Berlin, Los Angeles and Johannesburg are the sister cities of London or were Frantzisko Laphitz born at
Podgorica Shanghai Jakarta Arizkun Delhi Tokyo Mumbai Berlin Los Angeles Johannesburg
action filter_type
action union
action find
entity London
relation sister city
action find
entity Frantzisko Laphitz
relation place of birth
type administrative territorial entity
{'OR': [['London', 'sister city', {'concept': 'administrative territorial entity'}], ['Frantzisko Laphitz', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Frantzisko_Laphitz property:place_of_birth ?q } UNION { resource:London property:sister_city ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q64
P6
Q502895
USER
How many people are Berlin the head of goverment of ?
(Q64,P6,c(Q502895))
action count
action filter_type
action find
entity Q64
relation P6
type Q502895
['Q64', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { ?e rdf:type ontology:Q502895 . resource:Q64 property:P6 ?e }
Berlin
action count
action filter_type
action find
entity Berlin
relation head of government
type common name
['Berlin', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { ?e rdf:type ontology:common_name . resource:Berlin property:head_of_government ?e }
[]
common name
SYSTEM
14
Q705862 Q8863 Q552483 Q61085 Q2514 Q102844 Q650878 Q2567 Q96399 Q68748 Q60957 Q215756 Q69232 Q213561
(Q64,P6,c(Q502895))
action count
action filter_type
action find
entity Q64
relation P6
type Q502895
[ANSWER]
['Q64', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { ?e rdf:type ontology:Q502895 . resource:Q64 property:P6 ?e }
Heinrich Albertz Klaus Wowereit Hans-Jochen Vogel Walter Momper Willy Brandt Michael Müller Otto Suhr Richard von Weizsäcker Franz Amrehn Dietrich Stobbe Eberhard Diepgen Klaus Schütz Walther Schreiber Ernst Reuter
14
action count
action filter_type
action find
entity Berlin
relation head of government
type common name
['Berlin', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { ?e rdf:type ontology:common_name . resource:Berlin property:head_of_government ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q190499
P6
Q502895
USER
And also tell me about Severodvinsk?
(Q190499,P6,c(Q502895))
action count
action filter_type
action find
entity Q190499
relation P6
type Q502895
['Q190499', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Q190499 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Severodvinsk
action count
action filter_type
action find
entity Severodvinsk
relation head of government
type common name
['Severodvinsk', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Severodvinsk property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q4140560
(Q190499,P6,c(Q502895))
action count
action filter_type
action find
entity Q190499
relation P6
type Q502895
[ANSWER]
['Q190499', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Q190499 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Mikhail Gmyrin
1
action count
action filter_type
action find
entity Severodvinsk
relation head of government
type common name
['Severodvinsk', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Severodvinsk property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1607619
Q502895
USER
And how about A Rúa?
(Q1607619,P6,c(Q502895))
action count
action filter_type
action find
entity Q1607619
relation P6
type Q502895
['Q1607619', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ontology:Q502895 . resource:Q1607619 property:P6 ?g }
A Rúa
action count
action filter_type
action find
entity A Rúa
relation head of government
type common name
['A Rúa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ontology:common_name . resource:A_Rúa property:head_of_government ?g }
[]
common name
SYSTEM
1
(Q1607619,P6,c(Q502895))
action count
action filter_type
action find
entity Q1607619
relation P6
type Q502895
[ANSWER]
['Q1607619', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ontology:Q502895 . resource:Q1607619 property:P6 ?g }
1
action count
action filter_type
action find
entity A Rúa
relation head of government
type common name
['A Rúa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ontology:common_name . resource:A_Rúa property:head_of_government ?g }
[]