Simple Question (Direct)
Simple Question
Q7364941
P607
Q198
USER
What was the war that Ronald Holmes took part in
(Q7364941,P607,c(Q198))
action filter_type
action find
entity Q7364941
relation P607
type Q198
['Q7364941', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { resource:Q7364941 property:P607 ?j . ?j rdf:type ontology:Q198 }
Ronald Holmes
action filter_type
action find
entity Ronald Holmes
relation conflict
type war
['Ronald Holmes', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { resource:Ronald_Holmes property:conflict ?j . ?j rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q7364941,P607,c(Q198))
action filter_type
action find
entity Q7364941
relation P607
type Q198
The war that Ronald Holmes took part in was during [ANSWER]
['Q7364941', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { resource:Q7364941 property:P607 ?j . ?j rdf:type ontology:Q198 }
World War II
The war that Ronald Holmes took part in was during World War II
World War II
action filter_type
action find
entity Ronald Holmes
relation conflict
type war
['Ronald Holmes', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { resource:Ronald_Holmes property:conflict ?j . ?j rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7364941
P241
Q781132
USER
Which military branch is that person affiliated to ?
(Q362,P241,c(Q781132))
action filter_type
action find
entity Q7364941
relation P241
type Q781132
['Q362', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?p WHERE { resource:Q7364941 property:P241 ?p . ?p rdf:type ontology:Q781132 }
Ronald Holmes
action filter_type
action find
entity Ronald Holmes
relation military branch
type military branch
['World War II', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?p WHERE { resource:Ronald_Holmes property:military_branch ?p . ?p rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q362,P241,c(Q781132))
action filter_type
action find
entity Q7364941
relation P241
type Q781132
That person is affiliated with [ANSWER]
['Q362', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?p WHERE { resource:Q7364941 property:P241 ?p . ?p rdf:type ontology:Q781132 }
British Army
That person is affiliated with British Army
British Army
action filter_type
action find
entity Ronald Holmes
relation military branch
type military branch
['World War II', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?p WHERE { resource:Ronald_Holmes property:military_branch ?p . ?p rdf:type ontology:military_branch }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P361
Q781132 Q21506450 Q874405
USER
Which military branches are greater number of military unit size classes and social groups a component of than that military branch ?
(c(Q21506450)|c(Q874405),P361,c(Q781132))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q21506450
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q222595
relation P361
type Q21506450
type Q874405
[[{'concept': 'Q21506450'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) ?w WHERE { { ?w rdf:type ontology:Q781132 . ?g rdf:type ontology:Q21506450 . ?g property:P361 ?w } UNION { ?g property:P361 ?w . ?w rdf:type ontology:Q781132 . ?g rdf:type ontology:Q874405 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P361 resource:Q222595 . { { ?u rdf:type ontology:Q21506450 } UNION { ?u rdf:type ontology:Q874405 } } } } . FILTER ( ?k > ?c ) }
action greater
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit size class
action find_reverse_tuple_counts
relation part of
type military branch
type social group
action count
action filter_multi_types
action find_reverse
entity British Army
relation part of
type military unit size class
type social group
[[{'concept': 'military unit size class'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) ?w WHERE { { ?w rdf:type ontology:military_branch . ?g rdf:type ontology:military_unit_size_class . ?g property:part_of ?w } UNION { ?g property:part_of ?w . ?w rdf:type ontology:military_branch . ?g rdf:type ontology:social_group } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:part_of resource:British_Army . { { ?u rdf:type ontology:military_unit_size_class } UNION { ?u rdf:type ontology:social_group } } } } . FILTER ( ?k > ?c ) }
[]
military branch military unit size class social group
Q781360 Q9212 Q25436
SYSTEM
Australian Army, United States Army, Canadian Army
Q781360 Q25436 Q1358152 Q9212
(c(Q21506450)|c(Q874405),P361,c(Q781132))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q21506450
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q222595
relation P361
type Q21506450
type Q874405
[ANSWERS] are greater number of military unit size classes and social groups a component of than that military branch
[[{'concept': 'Q21506450'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) ?w WHERE { { ?w rdf:type ontology:Q781132 . ?g rdf:type ontology:Q21506450 . ?g property:P361 ?w } UNION { ?g property:P361 ?w . ?w rdf:type ontology:Q781132 . ?g rdf:type ontology:Q874405 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P361 resource:Q222595 . { { ?u rdf:type ontology:Q21506450 } UNION { ?u rdf:type ontology:Q874405 } } } } . FILTER ( ?k > ?c ) }
Australian Army Canadian Army Korean People's Army Ground Force United States Army
Australian Army, United States Army and Canadian Army are greater number of military unit size classes and social groups a component of than that military branch
Australian Army United States Army Canadian Army
action greater
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit size class
action find_reverse_tuple_counts
relation part of
type military branch
type social group
action count
action filter_multi_types
action find_reverse
entity British Army
relation part of
type military unit size class
type social group
[[{'concept': 'military unit size class'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) ?w WHERE { { ?w rdf:type ontology:military_branch . ?g rdf:type ontology:military_unit_size_class . ?g property:part_of ?w } UNION { ?g property:part_of ?w . ?w rdf:type ontology:military_branch . ?g rdf:type ontology:social_group } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:part_of resource:British_Army . { { ?u rdf:type ontology:military_unit_size_class } UNION { ?u rdf:type ontology:social_group } } } } . FILTER ( ?k > ?c ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q25436
P17
Q1048835
USER
Which political territory is that military branch a part of ?
(Q25436,P17,c(Q1048835))
action filter_type
action find
entity Q25436
relation P17
type Q1048835
['Q25436', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q25436 property:P17 ?d . ?d rdf:type ontology:Q1048835 }
Canadian Army
action filter_type
action find
entity Canadian Army
relation country
type political territorial entity
['Canadian Army', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Canadian_Army property:country ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q781360
SYSTEM
Did you mean Australian Army ?
Q781360 Q9212 Q25436
(Q781360,P17,c(Q1048835)) (Q9212,P17,c(Q1048835)) (Q25436,P17,c(Q1048835))
[ANSWER]
['Q781360', 'P17', {'concept': 'Q1048835'}] ['Q9212', 'P17', {'concept': 'Q1048835'}] ['Q25436', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q25436 property:P17 ?d . ?d rdf:type ontology:Q1048835 }
Australian Army United States Army Canadian Army
Did you mean Australian Army ?
Australian Army
['Australian Army', 'country', {'concept': 'political territorial entity'}] ['United States Army', 'country', {'concept': 'political territorial entity'}] ['Canadian Army', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Canadian_Army property:country ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Canadian Army. Could you tell me the answer for that?
(Q25436,P17,c(Q1048835))
Q25436
['Q25436', 'P17', {'concept': 'Q1048835'}]
['Canadian Army', 'country', {'concept': 'political territorial entity'}]
[]
Q16
SYSTEM
Canada
Q16
(Q25436,P17,c(Q1048835))
action filter_type
action find
entity Q25436
relation P17
type Q1048835
[ANSWER] is that military branch a part of
['Q25436', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q25436 property:P17 ?d . ?d rdf:type ontology:Q1048835 }
Canada
Canada is that military branch a part of
Canada
action filter_type
action find
entity Canadian Army
relation country
type political territorial entity
['Canadian Army', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Canadian_Army property:country ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q1048835 Q201658 Q15416
USER
How many political territories are the origin of around 98 film genres and television programs ?
(c(Q201658)|c(Q15416),P495,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
value 98
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?v WHERE { { ?y property:P495 ?v . ?v rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q201658 } UNION { ?y property:P495 ?v . ?v rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15416 } } GROUP BY ?v } . FILTER ( ?z = 98 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
value 98
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?v WHERE { { ?y property:country_of_origin ?v . ?v rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:film_genre } UNION { ?y property:country_of_origin ?v . ?v rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:television_program } } GROUP BY ?v } . FILTER ( ?z = 98 ) }
[]
political territorial entity film genre television program
SYSTEM
23
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q201658)|c(Q15416),P495,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
value 98
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?v WHERE { { ?y property:P495 ?v . ?v rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q201658 } UNION { ?y property:P495 ?v . ?v rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15416 } } GROUP BY ?v } . FILTER ( ?z = 98 ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
23
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
value 98
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?v WHERE { { ?y property:country_of_origin ?v . ?v rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:film_genre } UNION { ?y property:country_of_origin ?v . ?v rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:television_program } } GROUP BY ?v } . FILTER ( ?z = 98 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q16 Q183
P495
Q15416
USER
How many television programs originate at Canada and Germany ?
(c(Q15416),P495,Q16) (c(Q15416),P495,Q183)
action count
action intersection
action filter_type
action find_reverse
entity Q16
relation P495
type Q15416
action filter_type
action find_reverse
entity Q183
relation P495
type Q15416
[{'concept': 'Q15416'}, 'P495', 'Q16'] [{'concept': 'Q15416'}, 'P495', 'Q183']
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { ?z property:P495 resource:Q16 . ?z rdf:type ontology:Q15416 . ?z property:P495 resource:Q183 . ?z rdf:type ontology:Q15416 }
Canada Germany
action count
action intersection
action filter_type
action find_reverse
entity Canada
relation country of origin
type television program
action filter_type
action find_reverse
entity Germany
relation country of origin
type television program
[{'concept': 'television program'}, 'country of origin', 'Canada'] [{'concept': 'television program'}, 'country of origin', 'Germany']
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { ?z property:country_of_origin resource:Canada . ?z rdf:type ontology:television_program . ?z property:country_of_origin resource:Germany . ?z rdf:type ontology:television_program }
[]
television program
SYSTEM
8
Q1945309 Q833203 Q2666419 Q20198456 Q657308 Q1508462 Q5433205 Q13625367
(c(Q15416),P495,Q16) (c(Q15416),P495,Q183)
action count
action intersection
action filter_type
action find_reverse
entity Q16
relation P495
type Q15416
action filter_type
action find_reverse
entity Q183
relation P495
type Q15416
[ANSWER]
[{'concept': 'Q15416'}, 'P495', 'Q16'] [{'concept': 'Q15416'}, 'P495', 'Q183']
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { ?z property:P495 resource:Q16 . ?z rdf:type ontology:Q15416 . ?z property:P495 resource:Q183 . ?z rdf:type ontology:Q15416 }
Monster by Mistake The Little Vampire Largo Winch Billy the Cat Lexx Reefer Madness Family Passions Ice Planet
8
action count
action intersection
action filter_type
action find_reverse
entity Canada
relation country of origin
type television program
action filter_type
action find_reverse
entity Germany
relation country of origin
type television program
[{'concept': 'television program'}, 'country of origin', 'Canada'] [{'concept': 'television program'}, 'country of origin', 'Germany']
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { ?z property:country_of_origin resource:Canada . ?z rdf:type ontology:television_program . ?z property:country_of_origin resource:Germany . ?z rdf:type ontology:television_program }
[]