Simple Question (Direct)
Simple Question
Q37677
P39
Q12737077
USER
Which occupation was a position held by Francisco Solano López ?
(Q37677,P39,c(Q12737077))
action filter_type
action find
entity Q37677
relation P39
type Q12737077
['Q37677', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q37677 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Francisco Solano López
action filter_type
action find
entity Francisco Solano López
relation position held
type occupation
['Francisco Solano López', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Francisco_Solano_López property:position_held ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q34071
SYSTEM
President of Paraguay
Q34071
(Q37677,P39,c(Q12737077))
action filter_type
action find
entity Q37677
relation P39
type Q12737077
[ANSWER] was a position held by Francisco Solano López
['Q37677', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q37677 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
President of Paraguay
President of Paraguay was a position held by Francisco Solano López
President of Paraguay
action filter_type
action find
entity Francisco Solano López
relation position held
type occupation
['Francisco Solano López', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Francisco_Solano_López property:position_held ?l . ?l rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q268087
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints of greater number of occupations than Pudentiana ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q268087
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { resource:Q268087 property:P417 ?x . ?x rdf:type ontology:Q502895 } } . FILTER ( ?r > ?u ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:P417 ?p . ?p rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?p } }
Pudentiana
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Pudentiana
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { resource:Pudentiana property:patron_saint ?x . ?x rdf:type ontology:common_name } } . FILTER ( ?r > ?u ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:patron_saint ?p . ?p rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?p } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q268087
relation P417
type Q502895
[ANSWERS] are the names of person who are the patron saints of greater number of occupations than Pudentiana
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { resource:Q268087 property:P417 ?x . ?x rdf:type ontology:Q502895 } } . FILTER ( ?r > ?u ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:P417 ?p . ?p rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?p } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas, Albertus Magnus and Isidore of Seville are the names of person who are the patron saints of greater number of occupations than Pudentiana
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Pudentiana
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { resource:Pudentiana property:patron_saint ?x . ?x rdf:type ontology:common_name } } . FILTER ( ?r > ?u ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:patron_saint ?p . ?p rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?p } }
[]