Simple Question (Direct)
Simple Question
Q108036
P20
Q515
USER
Which city is the place of death of Ludwig Ihmels ?
(Q108036,P20,c(Q515))
action filter_type
action find
entity Q108036
relation P20
type Q515
['Q108036', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q108036 property:P20 ?f . ?f rdf:type ontology:Q515 }
Ludwig Ihmels
action filter_type
action find
entity Ludwig Ihmels
relation place of death
type city
['Ludwig Ihmels', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Ludwig_Ihmels property:place_of_death ?f . ?f rdf:type ontology:city }
[]
city
Q2079
SYSTEM
Leipzig
Q2079
(Q108036,P20,c(Q515))
action filter_type
action find
entity Q108036
relation P20
type Q515
[ANSWER] is the place of death of Ludwig Ihmels
['Q108036', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q108036 property:P20 ?f . ?f rdf:type ontology:Q515 }
Leipzig
Leipzig is the place of death of Ludwig Ihmels
Leipzig
action filter_type
action find
entity Ludwig Ihmels
relation place of death
type city
['Ludwig Ihmels', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Ludwig_Ihmels property:place_of_death ?f . ?f rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q108036
P106
Q12737077
USER
Which occupations are the professions of Ludwig Ihmels ?
(Q108036,P106,c(Q12737077))
action filter_type
action find
entity Q108036
relation P106
type Q12737077
['Q108036', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q108036 property:P106 ?y }
Ludwig Ihmels
action filter_type
action find
entity Ludwig Ihmels
relation occupation
type occupation
['Ludwig Ihmels', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Ludwig_Ihmels property:occupation ?y }
[]
occupation
Q1234713 Q1622272
SYSTEM
theologian, university teacher
Q1234713 Q1622272
(Q108036,P106,c(Q12737077))
action filter_type
action find
entity Q108036
relation P106
type Q12737077
The professions of Ludwig Ihmels are a [ANSWERS]
['Q108036', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q108036 property:P106 ?y }
theologian university teacher
The professions of Ludwig Ihmels are a theologian and university teacher
theologian university teacher
action filter_type
action find
entity Ludwig Ihmels
relation occupation
type occupation
['Ludwig Ihmels', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Ludwig_Ihmels property:occupation ?y }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of approximately 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?x ) WHERE { ?q rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 . ?g property:P417 ?q } GROUP BY ?q } . FILTER ( ?x = 2 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?x ) WHERE { ?q rdf:type ontology:common_name . ?g rdf:type ontology:occupation . ?g property:patron_saint ?q } GROUP BY ?q } . FILTER ( ?x = 2 ) }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWERS] are the patron saints of approximately 2 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?x ) WHERE { ?q rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 . ?g property:P417 ?q } GROUP BY ?q } . FILTER ( ?x = 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
Isidore of Seville, Catherine of Siena and Jerome are the patron saints of approximately 2 occupations
Isidore of Seville Catherine of Siena Jerome
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?x ) WHERE { ?q rdf:type ontology:common_name . ?g rdf:type ontology:occupation . ?g property:patron_saint ?q } GROUP BY ?q } . FILTER ( ?x = 2 ) }
[]