Simple Question (Direct)
Simple Question
Q1680558
P27
Q15617994
USER
Which administrative territory is the country of citizenship of James Hewitt ?
(Q1680558,P27,c(Q15617994))
action filter_type
action find
entity Q1680558
relation P27
type Q15617994
['Q1680558', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q1680558 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
James Hewitt
action filter_type
action find
entity James Hewitt
relation country of citizenship
type designation for an administrative territorial entity
['James Hewitt', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:James_Hewitt property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q1680558,P27,c(Q15617994))
action filter_type
action find
entity Q1680558
relation P27
type Q15617994
[ANSWER] is the country of citizenship of James Hewitt
['Q1680558', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q1680558 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of James Hewitt
United Kingdom
action filter_type
action find
entity James Hewitt
relation country of citizenship
type designation for an administrative territorial entity
['James Hewitt', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:James_Hewitt property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1680558
P69
Q1935049
USER
Where was James Hewitt educated ?
(Q1680558,P69,c(Q1935049))
action filter_type
action find
entity Q1680558
relation P69
type Q1935049
['Q1680558', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?o WHERE { resource:Q1680558 property:P69 ?o . ?o rdf:type ontology:Q1935049 }
James Hewitt
action filter_type
action find
entity James Hewitt
relation educated at
type military school
['James Hewitt', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?o WHERE { resource:James_Hewitt property:educated_at ?o . ?o rdf:type ontology:military_school }
[]
military school
Q575618
SYSTEM
Royal Military Academy Sandhurst
Q575618
(Q1680558,P69,c(Q1935049))
action filter_type
action find
entity Q1680558
relation P69
type Q1935049
James Hewitt was educated at [ANSWER]
['Q1680558', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?o WHERE { resource:Q1680558 property:P69 ?o . ?o rdf:type ontology:Q1935049 }
Royal Military Academy Sandhurst
James Hewitt was educated at Royal Military Academy Sandhurst
Royal Military Academy Sandhurst
action filter_type
action find
entity James Hewitt
relation educated at
type military school
['James Hewitt', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?o WHERE { resource:James_Hewitt property:educated_at ?o . ?o rdf:type ontology:military_school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q575618
P361
Q1935049
USER
What is a part of that one ?
(c(Q1935049),P361,Q575618)
action filter_type
action find_reverse
entity Q575618
relation P361
type Q1935049
[{'concept': 'Q1935049'}, 'P361', 'Q575618']
SELECT DISTINCT ?e WHERE { ?e property:P361 resource:Q575618 . ?e rdf:type ontology:Q1935049 }
Royal Military Academy Sandhurst
action filter_type
action find_reverse
entity Royal Military Academy Sandhurst
relation part of
type military school
[{'concept': 'military school'}, 'part of', 'Royal Military Academy Sandhurst']
SELECT DISTINCT ?e WHERE { ?e property:part_of resource:Royal_Military_Academy_Sandhurst . ?e rdf:type ontology:military_school }
[]
military school
Q17020147
SYSTEM
Royal Military College, Sandhurst
Q17020147
(c(Q1935049),P361,Q575618)
action filter_type
action find_reverse
entity Q575618
relation P361
type Q1935049
A part of that one is the [ANSWER]
[{'concept': 'Q1935049'}, 'P361', 'Q575618']
SELECT DISTINCT ?e WHERE { ?e property:P361 resource:Q575618 . ?e rdf:type ontology:Q1935049 }
Royal Military College, Sandhurst
A part of that one is the Royal Military College, Sandhurst
Royal Military College, Sandhurst
action filter_type
action find_reverse
entity Royal Military Academy Sandhurst
relation part of
type military school
[{'concept': 'military school'}, 'part of', 'Royal Military Academy Sandhurst']
SELECT DISTINCT ?e WHERE { ?e property:part_of resource:Royal_Military_Academy_Sandhurst . ?e rdf:type ontology:military_school }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5632117
Q350604
USER
And how about HMS Detroit?
(Q5632117,P607,c(Q350604))
action filter_type
action find
entity Q5632117
relation P607
type Q350604
['Q5632117', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q350604 . resource:Q5632117 property:P607 ?c }
HMS Detroit
action filter_type
action find
entity HMS Detroit
relation conflict
type armed conflict
['HMS Detroit', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:armed_conflict . resource:HMS_Detroit property:conflict ?c }
[]
armed conflict
Q26013
SYSTEM
War of 1812
Q26013
(Q5632117,P607,c(Q350604))
action filter_type
action find
entity Q5632117
relation P607
type Q350604
[ANSWER]
['Q5632117', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q350604 . resource:Q5632117 property:P607 ?c }
War of 1812
War of 1812
action filter_type
action find
entity HMS Detroit
relation conflict
type armed conflict
['HMS Detroit', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:armed_conflict . resource:HMS_Detroit property:conflict ?c }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q3305213 Q2342494
USER
Which administrative territories are expressed in approximately 2 paintings or collectables ?
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 2
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) ?d WHERE { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:Q3305213 ) ( ontology:Q2342494 ) } } GROUP BY ?d } . FILTER ( ?w = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 2
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) ?d WHERE { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:painting ) ( ontology:collectable ) } } GROUP BY ?d } . FILTER ( ?w = 2 ) }
[]
designation for an administrative territorial entity painting collectable
Q131596 Q38 Q82025
SYSTEM
farm, Italy, horn
Q131596 Q38 Q82025
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 2
[ANSWERS] are expressed in approximately 2 paintings or collectables
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) ?d WHERE { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:Q3305213 ) ( ontology:Q2342494 ) } } GROUP BY ?d } . FILTER ( ?w = 2 ) }
farm Italy horn
Farm, Italy and horn are expressed in approximately 2 paintings or collectables
farm Italy horn
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 2
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) ?d WHERE { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:painting ) ( ontology:collectable ) } } GROUP BY ?d } . FILTER ( ?w = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q15617994 Q838948 Q7725634
USER
Which administrative territories are the countries of origin of max number of works of art and literary works ?
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?x WHERE { VALUES ( ?p ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?i rdf:type ?p } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) ?r WHERE { { ?o property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P495 ?r . ?o rdf:type ontology:Q7725634 . ?r rdf:type ontology:Q15617994 } } GROUP BY ?r } . FILTER ( ?h = ?y ) }
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?x WHERE { VALUES ( ?p ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?i rdf:type ?p } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) ?r WHERE { { ?o property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:work_of_art } UNION { ?o property:country_of_origin ?r . ?o rdf:type ontology:literary_work . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } . FILTER ( ?h = ?y ) }
[]
designation for an administrative territorial entity work of art literary work
Q30
SYSTEM
United States of America
Q30
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
[ANSWER] is the countries of origin of max number of works of art and literary works
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?x WHERE { VALUES ( ?p ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?i rdf:type ?p } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) ?r WHERE { { ?o property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P495 ?r . ?o rdf:type ontology:Q7725634 . ?r rdf:type ontology:Q15617994 } } GROUP BY ?r } . FILTER ( ?h = ?y ) }
United States of America
United States of America is the countries of origin of max number of works of art and literary works
United States of America
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?x WHERE { VALUES ( ?p ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?i rdf:type ?p } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) ?r WHERE { { ?o property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:work_of_art } UNION { ?o property:country_of_origin ?r . ?o rdf:type ontology:literary_work . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } . FILTER ( ?h = ?y ) }
[]