Simple Question (Direct)
Simple Question
Q1564900
P20
Q515
USER
Where did Ludwig Bergmann expire ?
(Q1564900,P20,c(Q515))
action filter_type
action find
entity Q1564900
relation P20
type Q515
['Q1564900', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q515 . resource:Q1564900 property:P20 ?q }
Ludwig Bergmann
action filter_type
action find
entity Ludwig Bergmann
relation place of death
type city
['Ludwig Bergmann', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:city . resource:Ludwig_Bergmann property:place_of_death ?q }
[]
city
Q2966
SYSTEM
Heidelberg
Q2966
(Q1564900,P20,c(Q515))
action filter_type
action find
entity Q1564900
relation P20
type Q515
Ludwig Bergmann expired [ANSWER]
['Q1564900', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q515 . resource:Q1564900 property:P20 ?q }
Heidelberg
Ludwig Bergmann expired Heidelberg
Heidelberg
action filter_type
action find
entity Ludwig Bergmann
relation place of death
type city
['Ludwig Bergmann', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:city . resource:Ludwig_Bergmann property:place_of_death ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2966
P119
Q502895
USER
Which person has that city as resting place ?
(c(Q502895),P119,Q2966)
action filter_type
action find_reverse
entity Q2966
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q2966']
SELECT DISTINCT ?b WHERE { ?b property:P119 resource:Q2966 . ?b rdf:type ontology:Q502895 }
Heidelberg
action filter_type
action find_reverse
entity Heidelberg
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Heidelberg']
SELECT DISTINCT ?b WHERE { ?b property:place_of_burial resource:Heidelberg . ?b rdf:type ontology:common_name }
[]
common name
Q21543795
SYSTEM
Benno Kaspar Hauris
Q21543795
(c(Q502895),P119,Q2966)
action filter_type
action find_reverse
entity Q2966
relation P119
type Q502895
[ANSWER] has that city as resting place
[{'concept': 'Q502895'}, 'P119', 'Q2966']
SELECT DISTINCT ?b WHERE { ?b property:P119 resource:Q2966 . ?b rdf:type ontology:Q502895 }
Benno Kaspar Hauris
Benno Kaspar Hauris has that city as resting place
Benno Kaspar Hauris
action filter_type
action find_reverse
entity Heidelberg
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Heidelberg']
SELECT DISTINCT ?b WHERE { ?b property:place_of_burial resource:Heidelberg . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21543795
P21
Q290
USER
Which sex does that person possess ?
(Q21543795,P21,c(Q290))
action filter_type
action find
entity Q21543795
relation P21
type Q290
['Q21543795', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q21543795 property:P21 ?n . ?n rdf:type ontology:Q290 }
Benno Kaspar Hauris
action filter_type
action find
entity Benno Kaspar Hauris
relation gender
type sex
['Benno Kaspar Hauris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Benno_Kaspar_Hauris property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21543795,P21,c(Q290))
action filter_type
action find
entity Q21543795
relation P21
type Q290
That person possesses a [ANSWER]
['Q21543795', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q21543795 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Benno Kaspar Hauris
relation gender
type sex
['Benno Kaspar Hauris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Benno_Kaspar_Hauris property:gender ?n . ?n rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q1936581 Q2088357
USER
How many mineral groups or musical ensembles have that sex as their namesake ?
(c(Q1936581),P138,Q6581097) (c(Q2088357),P138,Q6581097) (c(Q1936581),P138,Q6581097) (c(Q2088357),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q1936581
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q2088357
[{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { ?m property:P138 resource:Q6581097 . ?m rdf:type ontology:Q1936581 } UNION { ?m property:P138 resource:Q6581097 . ?m rdf:type ontology:Q2088357 } }
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type mineral group
action filter_type
action find_reverse
entity male
relation named after
type musical ensemble
[{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { ?m property:named_after resource:male . ?m rdf:type ontology:mineral_group } UNION { ?m property:named_after resource:male . ?m rdf:type ontology:musical_ensemble } }
[]
mineral group musical ensemble
SYSTEM
2
Q15181127 Q3844522
(c(Q1936581),P138,Q6581097) (c(Q2088357),P138,Q6581097) (c(Q1936581),P138,Q6581097) (c(Q2088357),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q1936581
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q2088357
[ANSWER]
[{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { ?m property:P138 resource:Q6581097 . ?m rdf:type ontology:Q1936581 } UNION { ?m property:P138 resource:Q6581097 . ?m rdf:type ontology:Q2088357 } }
Ausekarane tweddillite
2
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type mineral group
action filter_type
action find_reverse
entity male
relation named after
type musical ensemble
[{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { ?m property:named_after resource:male . ?m rdf:type ontology:mineral_group } UNION { ?m property:named_after resource:male . ?m rdf:type ontology:musical_ensemble } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2966
P276
Q13226383
USER
Which facility has its location as Heidelberg ?
(c(Q13226383),P276,Q2966)
action filter_type
action find_reverse
entity Q2966
relation P276
type Q13226383
[{'concept': 'Q13226383'}, 'P276', 'Q2966']
SELECT DISTINCT ?v WHERE { ?v property:P276 resource:Q2966 . ?v rdf:type ontology:Q13226383 }
Heidelberg
action filter_type
action find_reverse
entity Heidelberg
relation location
type facility
[{'concept': 'facility'}, 'location', 'Heidelberg']
SELECT DISTINCT ?v WHERE { ?v property:location resource:Heidelberg . ?v rdf:type ontology:facility }
[]
facility
Q571207
SYSTEM
Astronomical Calculation Institute
Q571207
(c(Q13226383),P276,Q2966)
action filter_type
action find_reverse
entity Q2966
relation P276
type Q13226383
The [ANSWER] has its location as Heidelberg
[{'concept': 'Q13226383'}, 'P276', 'Q2966']
SELECT DISTINCT ?v WHERE { ?v property:P276 resource:Q2966 . ?v rdf:type ontology:Q13226383 }
Astronomical Calculation Institute
The Astronomical Calculation Institute has its location as Heidelberg
Astronomical Calculation Institute
action filter_type
action find_reverse
entity Heidelberg
relation location
type facility
[{'concept': 'facility'}, 'location', 'Heidelberg']
SELECT DISTINCT ?v WHERE { ?v property:location resource:Heidelberg . ?v rdf:type ontology:facility }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2966
P190
Q56061
USER
Which administrative territories are twin town of that city ?
(c(Q56061),P190,Q571207)
action filter_type
action find
entity Q2966
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q571207']
SELECT DISTINCT ?b WHERE { resource:Q2966 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Heidelberg
action filter_type
action find
entity Heidelberg
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Astronomical Calculation Institute']
SELECT DISTINCT ?b WHERE { resource:Heidelberg property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q6441 Q19566 Q93347
SYSTEM
Montpellier, Simferopol, Mostar
Q93347 Q19566 Q350 Q207350 Q6441
(c(Q56061),P190,Q571207)
action filter_type
action find
entity Q2966
relation P190
type Q56061
[ANSWERS] are twin town of that city
[{'concept': 'Q56061'}, 'P190', 'Q571207']
SELECT DISTINCT ?b WHERE { resource:Q2966 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Mostar Simferopol Cambridge Rehovot Montpellier
Montpellier, Simferopol and Mostar are twin town of that city
Montpellier Simferopol Mostar
action filter_type
action find
entity Heidelberg
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Astronomical Calculation Institute']
SELECT DISTINCT ?b WHERE { resource:Heidelberg property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q515 Q15617994 Q56061
USER
Which cities are sister towns of max number of administrative territories or administrative territories ?
(c(Q15617994)|c(Q56061),P190,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
[[{'concept': 'Q15617994'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?n WHERE { { ?y property:P190 ?n . ?y rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q515 } UNION { ?y property:P190 ?n . ?n rdf:type ontology:Q515 . ?y rdf:type ontology:Q56061 } } GROUP BY ?n } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) ?m WHERE { { ?z property:P190 ?m . ?z rdf:type ontology:Q56061 . ?m rdf:type ontology:Q515 } UNION { ?z property:P190 ?m . ?m rdf:type ontology:Q515 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?m } } }
action argmax
action union
action find_reverse_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?n WHERE { { ?y property:sister_city ?n . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:city } UNION { ?y property:sister_city ?n . ?n rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity } } GROUP BY ?n } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) ?m WHERE { { ?z property:sister_city ?m . ?z rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:city } UNION { ?z property:sister_city ?m . ?m rdf:type ontology:city . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?m } } }
[]
city designation for an administrative territorial entity administrative territorial entity
Q1486
SYSTEM
Buenos Aires
Q1486
(c(Q15617994)|c(Q56061),P190,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
[ANSWER] is sister towns of max number of administrative territories or administrative territories
[[{'concept': 'Q15617994'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?n WHERE { { ?y property:P190 ?n . ?y rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q515 } UNION { ?y property:P190 ?n . ?n rdf:type ontology:Q515 . ?y rdf:type ontology:Q56061 } } GROUP BY ?n } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) ?m WHERE { { ?z property:P190 ?m . ?z rdf:type ontology:Q56061 . ?m rdf:type ontology:Q515 } UNION { ?z property:P190 ?m . ?m rdf:type ontology:Q515 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?m } } }
Buenos Aires
Buenos Aires is sister towns of max number of administrative territories or administrative territories
Buenos Aires
action argmax
action union
action find_reverse_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?n WHERE { { ?y property:sister_city ?n . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:city } UNION { ?y property:sister_city ?n . ?n rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity } } GROUP BY ?n } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) ?m WHERE { { ?z property:sister_city ?m . ?z rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:city } UNION { ?z property:sister_city ?m . ?m rdf:type ontology:city . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?m } } }
[]