Simple Question (Direct)
Simple Question
Q353266
P27
Q15617994
USER
Which administrative territory does Lewis Baltz belong to ?
(Q353266,P27,c(Q15617994))
action filter_type
action find
entity Q353266
relation P27
type Q15617994
['Q353266', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q353266 property:P27 ?f }
Lewis Baltz
action filter_type
action find
entity Lewis Baltz
relation country of citizenship
type designation for an administrative territorial entity
['Lewis Baltz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lewis_Baltz property:country_of_citizenship ?f }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q353266,P27,c(Q15617994))
action filter_type
action find
entity Q353266
relation P27
type Q15617994
Lewis Baltz belongs to [ANSWER]
['Q353266', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q353266 property:P27 ?f }
United States of America
Lewis Baltz belongs to United States of America
United States of America
action filter_type
action find
entity Lewis Baltz
relation country of citizenship
type designation for an administrative territorial entity
['Lewis Baltz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lewis_Baltz property:country_of_citizenship ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q353266
P69
Q163740
USER
Where was Lewis Baltz educated ?
(Q353266,P69,c(Q163740))
action filter_type
action find
entity Q353266
relation P69
type Q163740
['Q353266', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?g WHERE { resource:Q353266 property:P69 ?g . ?g rdf:type ontology:Q163740 }
Lewis Baltz
action filter_type
action find
entity Lewis Baltz
relation educated at
type nonprofit organization
['Lewis Baltz', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?g WHERE { resource:Lewis_Baltz property:educated_at ?g . ?g rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q50015
SYSTEM
Claremont Graduate University
Q50015
(Q353266,P69,c(Q163740))
action filter_type
action find
entity Q353266
relation P69
type Q163740
Lewis Baltz was educated by [ANSWER]
['Q353266', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?g WHERE { resource:Q353266 property:P69 ?g . ?g rdf:type ontology:Q163740 }
Claremont Graduate University
Lewis Baltz was educated by Claremont Graduate University
Claremont Graduate University
action filter_type
action find
entity Lewis Baltz
relation educated at
type nonprofit organization
['Lewis Baltz', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?g WHERE { resource:Lewis_Baltz property:educated_at ?g . ?g rdf:type ontology:nonprofit_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q50015
P138
Q56061
USER
Which administrative territory is the etymology of that nonprofit organization ?
(Q50015,P138,c(Q56061))
action filter_type
action find
entity Q50015
relation P138
type Q56061
['Q50015', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q50015 property:P138 ?h }
Claremont Graduate University
action filter_type
action find
entity Claremont Graduate University
relation named after
type administrative territorial entity
['Claremont Graduate University', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Claremont_Graduate_University property:named_after ?h }
[]
administrative territorial entity
Q506398
SYSTEM
Claremont
Q506398
(Q50015,P138,c(Q56061))
action filter_type
action find
entity Q50015
relation P138
type Q56061
[ANSWER] is the etymology of that nonprofit organization
['Q50015', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q50015 property:P138 ?h }
Claremont
Claremont is the etymology of that nonprofit organization
Claremont
action filter_type
action find
entity Claremont Graduate University
relation named after
type administrative territorial entity
['Claremont Graduate University', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Claremont_Graduate_University property:named_after ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q50015
P17
Q15617994
USER
Which administrative territory does that nonprofit organization belong to ?
(Q506398,P17,c(Q15617994))
action filter_type
action find
entity Q50015
relation P17
type Q15617994
['Q506398', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q50015 property:P17 ?d }
Claremont Graduate University
action filter_type
action find
entity Claremont Graduate University
relation country
type designation for an administrative territorial entity
['Claremont', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Claremont_Graduate_University property:country ?d }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q506398,P17,c(Q15617994))
action filter_type
action find
entity Q50015
relation P17
type Q15617994
That nonprofit organization belongs to the [ANSWER]
['Q506398', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q50015 property:P17 ?d }
United States of America
That nonprofit organization belongs to the United States of America
United States of America
action filter_type
action find
entity Claremont Graduate University
relation country
type designation for an administrative territorial entity
['Claremont', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Claremont_Graduate_University property:country ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q506398
P47
Q56061
USER
Which administrative territory is adjacent to Claremont ?
(Q506398,P47,c(Q56061))
action filter_type
action find
entity Q506398
relation P47
type Q56061
['Q506398', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q506398 property:P47 ?m . ?m rdf:type ontology:Q56061 }
Claremont
action filter_type
action find
entity Claremont
relation shares border with
type administrative territorial entity
['Claremont', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Claremont property:shares_border_with ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q486868
SYSTEM
Pomona
Q486868
(Q506398,P47,c(Q56061))
action filter_type
action find
entity Q506398
relation P47
type Q56061
To [ANSWER] is adjacent to Claremont
['Q506398', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q506398 property:P47 ?m . ?m rdf:type ontology:Q56061 }
Pomona
To Pomona is adjacent to Claremont
Pomona
action filter_type
action find
entity Claremont
relation shares border with
type administrative territorial entity
['Claremont', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Claremont property:shares_border_with ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1759112
Q56061
USER
And also tell me about Várzea Paulista?
(Q1759112,P47,c(Q56061))
action filter_type
action find
entity Q1759112
relation P47
type Q56061
['Q1759112', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q1759112 property:P47 ?u . ?u rdf:type ontology:Q56061 }
Várzea Paulista
action filter_type
action find
entity Várzea Paulista
relation shares border with
type administrative territorial entity
['Várzea Paulista', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Várzea_Paulista property:shares_border_with ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q275109 Q1754452
SYSTEM
Jundiaí, Campo Limpo Paulista
Q275109 Q1754452
(Q1759112,P47,c(Q56061))
action filter_type
action find
entity Q1759112
relation P47
type Q56061
[ANSWERS]
['Q1759112', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q1759112 property:P47 ?u . ?u rdf:type ontology:Q56061 }
Jundiaí Campo Limpo Paulista
Jundiaí Campo Limpo Paulista
action filter_type
action find
entity Várzea Paulista
relation shares border with
type administrative territorial entity
['Várzea Paulista', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Várzea_Paulista property:shares_border_with ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P840
Q56061 Q15416 Q166142
USER
Which administrative territories are the narrative locations of max number of television programs and applications ?
(c(Q15416)|c(Q166142),P840,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?p WHERE { { ?o property:P840 ?p . ?p rdf:type ontology:Q56061 . ?o rdf:type ontology:Q15416 } UNION { ?o rdf:type ontology:Q166142 . ?p rdf:type ontology:Q56061 . ?o property:P840 ?p } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?y WHERE { { ?a property:P840 ?y . ?y rdf:type ontology:Q56061 . ?a rdf:type ontology:Q15416 } UNION { ?a rdf:type ontology:Q166142 . ?y rdf:type ontology:Q56061 . ?a property:P840 ?y } } GROUP BY ?y } . FILTER ( ?u = ?n ) }
action argmax
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?p WHERE { { ?o property:narrative_location ?p . ?p rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:television_program } UNION { ?o rdf:type ontology:application . ?p rdf:type ontology:administrative_territorial_entity . ?o property:narrative_location ?p } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?y WHERE { { ?a property:narrative_location ?y . ?y rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:television_program } UNION { ?a rdf:type ontology:application . ?y rdf:type ontology:administrative_territorial_entity . ?a property:narrative_location ?y } } GROUP BY ?y } . FILTER ( ?u = ?n ) }
[]
administrative territorial entity television program application
Q60
SYSTEM
New York City
Q60
(c(Q15416)|c(Q166142),P840,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
[ANSWER] is the narrative locations of max number of television programs and applications
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?p WHERE { { ?o property:P840 ?p . ?p rdf:type ontology:Q56061 . ?o rdf:type ontology:Q15416 } UNION { ?o rdf:type ontology:Q166142 . ?p rdf:type ontology:Q56061 . ?o property:P840 ?p } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?y WHERE { { ?a property:P840 ?y . ?y rdf:type ontology:Q56061 . ?a rdf:type ontology:Q15416 } UNION { ?a rdf:type ontology:Q166142 . ?y rdf:type ontology:Q56061 . ?a property:P840 ?y } } GROUP BY ?y } . FILTER ( ?u = ?n ) }
New York City
New York City is the narrative locations of max number of television programs and applications
New York City
action argmax
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) ?p WHERE { { ?o property:narrative_location ?p . ?p rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:television_program } UNION { ?o rdf:type ontology:application . ?p rdf:type ontology:administrative_territorial_entity . ?o property:narrative_location ?p } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?y WHERE { { ?a property:narrative_location ?y . ?y rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:television_program } UNION { ?a rdf:type ontology:application . ?y rdf:type ontology:administrative_territorial_entity . ?a property:narrative_location ?y } } GROUP BY ?y } . FILTER ( ?u = ?n ) }
[]