Simple Question (Direct)
Simple Question
Q1097515
P108
Q3918
USER
Which university does Claudia Honegger work for ?
(Q1097515,P108,c(Q3918))
action filter_type
action find
entity Q1097515
relation P108
type Q3918
['Q1097515', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q3918 . resource:Q1097515 property:P108 ?f }
Claudia Honegger
action filter_type
action find
entity Claudia Honegger
relation employer
type university
['Claudia Honegger', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:university . resource:Claudia_Honegger property:employer ?f }
[]
university
Q659080
SYSTEM
University of Bern
Q659080
(Q1097515,P108,c(Q3918))
action filter_type
action find
entity Q1097515
relation P108
type Q3918
Claudia Honegger works in [ANSWER]
['Q1097515', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q3918 . resource:Q1097515 property:P108 ?f }
University of Bern
Claudia Honegger works in University of Bern
University of Bern
action filter_type
action find
entity Claudia Honegger
relation employer
type university
['Claudia Honegger', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:university . resource:Claudia_Honegger property:employer ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1097515
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q659080,P19,c(Q56061))
action filter_type
action find
entity Q1097515
relation P19
type Q56061
['Q659080', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q1097515 property:P19 ?o }
Claudia Honegger
action filter_type
action find
entity Claudia Honegger
relation place of birth
type administrative territorial entity
['University of Bern', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Claudia_Honegger property:place_of_birth ?o }
[]
administrative territorial entity
Q72
SYSTEM
Zürich
Q72
(Q659080,P19,c(Q56061))
action filter_type
action find
entity Q1097515
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q659080', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q1097515 property:P19 ?o }
Zürich
Zürich is the birthplace of that person
Zürich
action filter_type
action find
entity Claudia Honegger
relation place of birth
type administrative territorial entity
['University of Bern', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Claudia_Honegger property:place_of_birth ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q515 Q13220204
USER
How many cities and administrative country subdivisions are sister town of that administrative territory ?
(c(Q515),P190,Q72) (c(Q13220204),P190,Q72) (c(Q515),P190,Q72) (c(Q13220204),P190,Q72)
action count
action union
action filter_type
action find_reverse
entity Q72
relation P190
type Q515
action filter_type
action find_reverse
entity Q72
relation P190
type Q13220204
[{'concept': 'Q515'}, 'P190', 'Q72'] [{'concept': 'Q13220204'}, 'P190', 'Q72'] [{'concept': 'Q515'}, 'P190', 'Q72'] [{'concept': 'Q13220204'}, 'P190', 'Q72']
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u rdf:type ?k . VALUES ( ?k ) { ( ontology:Q13220204 ) ( ontology:Q515 ) } }
action count
action union
action filter_type
action find_reverse
entity Zürich
relation sister city
type city
action filter_type
action find_reverse
entity Zürich
relation sister city
type second-level administrative country subdivision
[{'concept': 'city'}, 'sister city', 'Zürich'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Zürich'] [{'concept': 'city'}, 'sister city', 'Zürich'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Zürich']
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u rdf:type ?k . VALUES ( ?k ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:city ) } }
[]
city second-level administrative country subdivision
SYSTEM
1 cities and 1 administrative country subdivisions
Q182852 Q157144
(c(Q515),P190,Q72) (c(Q13220204),P190,Q72) (c(Q515),P190,Q72) (c(Q13220204),P190,Q72)
action count
action union
action filter_type
action find_reverse
entity Q72
relation P190
type Q515
action filter_type
action find_reverse
entity Q72
relation P190
type Q13220204
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q72'] [{'concept': 'Q13220204'}, 'P190', 'Q72'] [{'concept': 'Q515'}, 'P190', 'Q72'] [{'concept': 'Q13220204'}, 'P190', 'Q72']
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u rdf:type ?k . VALUES ( ?k ) { ( ontology:Q13220204 ) ( ontology:Q515 ) } }
Kunming Vinnytsia
1 cities and 1 administrative country subdivisions
action count
action union
action filter_type
action find_reverse
entity Zürich
relation sister city
type city
action filter_type
action find_reverse
entity Zürich
relation sister city
type second-level administrative country subdivision
[{'concept': 'city'}, 'sister city', 'Zürich'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Zürich'] [{'concept': 'city'}, 'sister city', 'Zürich'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Zürich']
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u rdf:type ?k . VALUES ( ?k ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:city ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P825
Q502895 Q838948 Q811979
USER
Which people are max number of works of art and architectural structures dedicated to ?
(c(Q838948)|c(Q811979),P825,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
[[{'concept': 'Q838948'}, {'concept': 'Q811979'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?e WHERE { VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q811979 ) } . ?x rdf:type ?a } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) ?p WHERE { VALUES ( ?i ) { ( ontology:Q838948 ) ( ontology:Q811979 ) } . ?f rdf:type ?i } GROUP BY ?p } . FILTER ( ?k = ?c ) }
action argmax
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type work of art
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
[[{'concept': 'work of art'}, {'concept': 'architectural structure'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?e WHERE { VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:architectural_structure ) } . ?x rdf:type ?a } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) ?p WHERE { VALUES ( ?i ) { ( ontology:work_of_art ) ( ontology:architectural_structure ) } . ?f rdf:type ?i } GROUP BY ?p } . FILTER ( ?k = ?c ) }
[]
common name work of art architectural structure
Q1394 Q7327
SYSTEM
Vladimir Lenin, Yuri Gagarin
Q1394 Q7327
(c(Q838948)|c(Q811979),P825,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q811979'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?e WHERE { VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q811979 ) } . ?x rdf:type ?a } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) ?p WHERE { VALUES ( ?i ) { ( ontology:Q838948 ) ( ontology:Q811979 ) } . ?f rdf:type ?i } GROUP BY ?p } . FILTER ( ?k = ?c ) }
Vladimir Lenin Yuri Gagarin
Which people are max number of works of art and architectural structures dedicated to
Vladimir Lenin Yuri Gagarin
action argmax
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type work of art
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
[[{'concept': 'work of art'}, {'concept': 'architectural structure'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?e WHERE { VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:architectural_structure ) } . ?x rdf:type ?a } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) ?p WHERE { VALUES ( ?i ) { ( ontology:work_of_art ) ( ontology:architectural_structure ) } . ?f rdf:type ?i } GROUP BY ?p } . FILTER ( ?k = ?c ) }
[]