Simple Question (Direct)
Simple Question
Q3615717
P20
Q56061
USER
Which administrative territory is the place of death of Andrea Frazzi ?
(Q3615717,P20,c(Q56061))
action filter_type
action find
entity Q3615717
relation P20
type Q56061
['Q3615717', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3615717 property:P20 ?h . ?h rdf:type ontology:Q56061 }
Andrea Frazzi
action filter_type
action find
entity Andrea Frazzi
relation place of death
type administrative territorial entity
['Andrea Frazzi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Andrea_Frazzi property:place_of_death ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2044
SYSTEM
Florence
Q2044
(Q3615717,P20,c(Q56061))
action filter_type
action find
entity Q3615717
relation P20
type Q56061
[ANSWER] is the place of death of Andrea Frazzi
['Q3615717', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3615717 property:P20 ?h . ?h rdf:type ontology:Q56061 }
Florence
Florence is the place of death of Andrea Frazzi
Florence
action filter_type
action find
entity Andrea Frazzi
relation place of death
type administrative territorial entity
['Andrea Frazzi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Andrea_Frazzi property:place_of_death ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2044
P36
Q15617994
USER
Which administrative territories have that administrative territory as their capital ?
(c(Q15617994),P36,Q2044)
action filter_type
action find_reverse
entity Q2044
relation P36
type Q15617994
[{'concept': 'Q15617994'}, 'P36', 'Q2044']
SELECT DISTINCT ?i WHERE { ?i property:P36 resource:Q2044 . ?i rdf:type ontology:Q15617994 }
Florence
action filter_type
action find_reverse
entity Florence
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Florence']
SELECT DISTINCT ?i WHERE { ?i property:capital resource:Florence . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q2567507 Q1273
SYSTEM
Arno, Tuscany
Q2567507 Q1273
(c(Q15617994),P36,Q2044)
action filter_type
action find_reverse
entity Q2044
relation P36
type Q15617994
[ANSWERS] have that administrative territory as their capital
[{'concept': 'Q15617994'}, 'P36', 'Q2044']
SELECT DISTINCT ?i WHERE { ?i property:P36 resource:Q2044 . ?i rdf:type ontology:Q15617994 }
Arno Tuscany
Arno and Tuscany have that administrative territory as their capital
Arno Tuscany
action filter_type
action find_reverse
entity Florence
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Florence']
SELECT DISTINCT ?i WHERE { ?i property:capital resource:Florence . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2567507 Q1273
P17
Q15617994
USER
Which administrative territories are Arno and Tuscany located in ?
(Q2567507,P17,c(Q15617994)) (Q1273,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2567507
relation P17
type Q15617994
action filter_type
action find
entity Q1273
relation P17
type Q15617994
['Q2567507', 'P17', {'concept': 'Q15617994'}] ['Q1273', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?m ) { ( resource:Q2567507 ) ( resource:Q1273 ) } . ?m property:P17 ?i }
Arno Tuscany
action union
action filter_type
action find
entity Arno
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Tuscany
relation country
type designation for an administrative territorial entity
['Arno', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tuscany', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?m ) { ( resource:Arno ) ( resource:Tuscany ) } . ?m property:country ?i }
[]
designation for an administrative territorial entity
Q142 Q38
SYSTEM
France, Italy
Q142 Q38
(Q2567507,P17,c(Q15617994)) (Q1273,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2567507
relation P17
type Q15617994
action filter_type
action find
entity Q1273
relation P17
type Q15617994
Arno and Tuscany are located in [ANSWERS]
['Q2567507', 'P17', {'concept': 'Q15617994'}] ['Q1273', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?m ) { ( resource:Q2567507 ) ( resource:Q1273 ) } . ?m property:P17 ?i }
France Italy
Arno and Tuscany are located in France and Italy
France Italy
action union
action filter_type
action find
entity Arno
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Tuscany
relation country
type designation for an administrative territorial entity
['Arno', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tuscany', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?m ) { ( resource:Arno ) ( resource:Tuscany ) } . ?m property:country ?i }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q142 Q38
P138
Q17444909
USER
Which astronomical object types come from those administrative territories ?
(c(Q17444909),P138,Q142) (c(Q17444909),P138,Q38)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q142'] [{'concept': 'Q17444909'}, 'P138', 'Q38']
SELECT DISTINCT ?l WHERE { ?l property:P138 ?j . ?l rdf:type ontology:Q17444909 . VALUES ( ?j ) { ( resource:Q142 ) ( resource:Q38 ) } }
France Italy
action filter_type
action find_reverse
entity prev_answer
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'France'] [{'concept': 'astronomical object type'}, 'named after', 'Italy']
SELECT DISTINCT ?l WHERE { ?l property:named_after ?j . ?l rdf:type ontology:astronomical_object_type . VALUES ( ?j ) { ( resource:France ) ( resource:Italy ) } }
[]
astronomical object type
Q139745 Q154636
SYSTEM
148 Gallia, 477 Italia
Q139745 Q154636
(c(Q17444909),P138,Q142) (c(Q17444909),P138,Q38)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q17444909
[ANSWERS] come from those administrative territories
[{'concept': 'Q17444909'}, 'P138', 'Q142'] [{'concept': 'Q17444909'}, 'P138', 'Q38']
SELECT DISTINCT ?l WHERE { ?l property:P138 ?j . ?l rdf:type ontology:Q17444909 . VALUES ( ?j ) { ( resource:Q142 ) ( resource:Q38 ) } }
148 Gallia 477 Italia
148 Gallia and 477 Italia come from those administrative territories
148 Gallia 477 Italia
action filter_type
action find_reverse
entity prev_answer
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'France'] [{'concept': 'astronomical object type'}, 'named after', 'Italy']
SELECT DISTINCT ?l WHERE { ?l property:named_after ?j . ?l rdf:type ontology:astronomical_object_type . VALUES ( ?j ) { ( resource:France ) ( resource:Italy ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q154636
P196
Q6999
USER
Which astronomical object comprises the minor planet group of that astronomical object type ?
(Q154636,P196,c(Q6999))
action filter_type
action find
entity Q154636
relation P196
type Q6999
['Q154636', 'P196', {'concept': 'Q6999'}]
SELECT DISTINCT ?l WHERE { resource:Q154636 property:P196 ?l . ?l rdf:type ontology:Q6999 }
477 Italia
action filter_type
action find
entity 477 Italia
relation minor planet group
type astronomical object
['477 Italia', 'minor planet group', {'concept': 'astronomical object'}]
SELECT DISTINCT ?l WHERE { resource:477_Italia property:minor_planet_group ?l . ?l rdf:type ontology:astronomical_object }
[]
astronomical object
Clarification for simple ques.
Q139745
SYSTEM
Did you mean 148 Gallia ?
Q139745 Q154636
(Q139745,P196,c(Q6999)) (Q154636,P196,c(Q6999))
[ANSWER]
['Q139745', 'P196', {'concept': 'Q6999'}] ['Q154636', 'P196', {'concept': 'Q6999'}]
SELECT DISTINCT ?l WHERE { resource:Q154636 property:P196 ?l . ?l rdf:type ontology:Q6999 }
148 Gallia 477 Italia
Did you mean 148 Gallia ?
148 Gallia
['148 Gallia', 'minor planet group', {'concept': 'astronomical object'}] ['477 Italia', 'minor planet group', {'concept': 'astronomical object'}]
SELECT DISTINCT ?l WHERE { resource:477_Italia property:minor_planet_group ?l . ?l rdf:type ontology:astronomical_object }
[]
Simple Question (Coreferenced)
USER
No, I meant 477 Italia. Could you tell me the answer for that?
(Q154636,P196,c(Q6999))
Q154636
['Q154636', 'P196', {'concept': 'Q6999'}]
['477 Italia', 'minor planet group', {'concept': 'astronomical object'}]
[]
Q2179
SYSTEM
asteroid belt
Q2179
(Q154636,P196,c(Q6999))
action filter_type
action find
entity Q154636
relation P196
type Q6999
[ANSWER] comprises the minor planet group of that astronomical object type
['Q154636', 'P196', {'concept': 'Q6999'}]
SELECT DISTINCT ?l WHERE { resource:Q154636 property:P196 ?l . ?l rdf:type ontology:Q6999 }
asteroid belt
Asteroid belt comprises the minor planet group of that astronomical object type
asteroid belt
action filter_type
action find
entity 477 Italia
relation minor planet group
type astronomical object
['477 Italia', 'minor planet group', {'concept': 'astronomical object'}]
SELECT DISTINCT ?l WHERE { resource:477_Italia property:minor_planet_group ?l . ?l rdf:type ontology:astronomical_object }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q2668072 Q7743
USER
Which administrative territories are max number of collections and homes a part of ?
(c(Q2668072)|c(Q7743),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2668072
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q7743
[[{'concept': 'Q2668072'}, {'concept': 'Q7743'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?d ) WHERE { VALUES ( ?n ) { ( ontology:Q2668072 ) ( ontology:Q7743 ) } . ?b rdf:type ?n } GROUP BY ?o } . FILTER ( ?d = ?g ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?u ) { ( ontology:Q2668072 ) ( ontology:Q7743 ) } . ?h rdf:type ?u } GROUP BY ?a } } }
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type collection
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type home
[[{'concept': 'collection'}, {'concept': 'home'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?d ) WHERE { VALUES ( ?n ) { ( ontology:collection ) ( ontology:home ) } . ?b rdf:type ?n } GROUP BY ?o } . FILTER ( ?d = ?g ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?u ) { ( ontology:collection ) ( ontology:home ) } . ?h rdf:type ?u } GROUP BY ?a } } }
[]
designation for an administrative territorial entity collection home
Q145
SYSTEM
United Kingdom
Q145
(c(Q2668072)|c(Q7743),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2668072
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q7743
[ANSWER] is max number of collections and homes a part of
[[{'concept': 'Q2668072'}, {'concept': 'Q7743'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?d ) WHERE { VALUES ( ?n ) { ( ontology:Q2668072 ) ( ontology:Q7743 ) } . ?b rdf:type ?n } GROUP BY ?o } . FILTER ( ?d = ?g ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?u ) { ( ontology:Q2668072 ) ( ontology:Q7743 ) } . ?h rdf:type ?u } GROUP BY ?a } } }
United Kingdom
United Kingdom is max number of collections and homes a part of
United Kingdom
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type collection
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type home
[[{'concept': 'collection'}, {'concept': 'home'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?d ) WHERE { VALUES ( ?n ) { ( ontology:collection ) ( ontology:home ) } . ?b rdf:type ?n } GROUP BY ?o } . FILTER ( ?d = ?g ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?u ) { ( ontology:collection ) ( ontology:home ) } . ?h rdf:type ?u } GROUP BY ?a } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with atleast 28 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 28
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?d ) WHERE { ?p property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?d >= 28 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?d ) WHERE { ?p property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?d >= 28 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 28
[ANSWERS] hold diplomatic relationship with atleast 28 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?d ) WHERE { ?p property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?d >= 28 ) }
Brazil Italy
Brazil and Italy hold diplomatic relationship with atleast 28 administrative territories
Brazil Italy
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?d ) WHERE { ?p property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?d >= 28 ) }
[]