Simple Question (Direct)
Simple Question
Q1706644
P106
Q12737077
USER
What are the professions of Alexander Pschera ?
(Q1706644,P106,c(Q12737077))
action filter_type
action find
entity Q1706644
relation P106
type Q12737077
['Q1706644', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1706644 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Alexander Pschera
action filter_type
action find
entity Alexander Pschera
relation occupation
type occupation
['Alexander Pschera', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Alexander_Pschera property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q333634 Q36180
SYSTEM
translator, writer
Q333634 Q36180
(Q1706644,P106,c(Q12737077))
action filter_type
action find
entity Q1706644
relation P106
type Q12737077
The professions of Alexander Pschera are a [ANSWERS]
['Q1706644', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1706644 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
translator writer
The professions of Alexander Pschera are a translator and writer
translator writer
action filter_type
action find
entity Alexander Pschera
relation occupation
type occupation
['Alexander Pschera', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Alexander_Pschera property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1706644
P27
Q1048835
USER
Which political territory is the country of citizenship of that person ?
(Q333634,P27,c(Q1048835)) (Q36180,P27,c(Q1048835))
action filter_type
action find
entity Q1706644
relation P27
type Q1048835
['Q333634', 'P27', {'concept': 'Q1048835'}] ['Q36180', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . resource:Q1706644 property:P27 ?f }
Alexander Pschera
action filter_type
action find
entity Alexander Pschera
relation country of citizenship
type political territorial entity
['translator', 'country of citizenship', {'concept': 'political territorial entity'}] ['writer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Alexander_Pschera property:country_of_citizenship ?f }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q333634,P27,c(Q1048835)) (Q36180,P27,c(Q1048835))
action filter_type
action find
entity Q1706644
relation P27
type Q1048835
[ANSWER] is the country of citizenship of that person
['Q333634', 'P27', {'concept': 'Q1048835'}] ['Q36180', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . resource:Q1706644 property:P27 ?f }
Germany
Germany is the country of citizenship of that person
Germany
action filter_type
action find
entity Alexander Pschera
relation country of citizenship
type political territorial entity
['translator', 'country of citizenship', {'concept': 'political territorial entity'}] ['writer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Alexander_Pschera property:country_of_citizenship ?f }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q15966561 Q1706644
P27
Q1048835
USER
Or Dolors Garcia i Cornellà?
OR((Q1706644,P27,c(Q1048835)), (Q15966561,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1706644
relation P27
action find
entity Q15966561
relation P27
type Q1048835
{'OR': [['Q1706644', 'P27', {'concept': 'Q1048835'}], ['Q15966561', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1048835 . { { resource:Q1706644 property:P27 ?i } UNION { resource:Q15966561 property:P27 ?i } } }
Dolors Garcia i Cornellà Alexander Pschera
action filter_type
action union
action find
entity Alexander Pschera
relation country of citizenship
action find
entity Dolors Garcia i Cornellà
relation country of citizenship
type political territorial entity
{'OR': [['Alexander Pschera', 'country of citizenship', {'concept': 'political territorial entity'}], ['Dolors Garcia i Cornellà', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_territorial_entity . { { resource:Alexander_Pschera property:country_of_citizenship ?i } UNION { resource:Dolors_Garcia_i_Cornellà property:country_of_citizenship ?i } } }
[]
political territorial entity
Q183 Q5705
SYSTEM
Germany, Catalonia
Q183 Q5705
OR((Q1706644,P27,c(Q1048835)), (Q15966561,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1706644
relation P27
action find
entity Q15966561
relation P27
type Q1048835
Dolors in [ANSWERS] i Cornellà Garcia Or
{'OR': [['Q1706644', 'P27', {'concept': 'Q1048835'}], ['Q15966561', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1048835 . { { resource:Q1706644 property:P27 ?i } UNION { resource:Q15966561 property:P27 ?i } } }
Germany Catalonia
Dolors in Germany and Catalonia i Cornellà Garcia Or
Germany Catalonia
action filter_type
action union
action find
entity Alexander Pschera
relation country of citizenship
action find
entity Dolors Garcia i Cornellà
relation country of citizenship
type political territorial entity
{'OR': [['Alexander Pschera', 'country of citizenship', {'concept': 'political territorial entity'}], ['Dolors Garcia i Cornellà', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_territorial_entity . { { resource:Alexander_Pschera property:country_of_citizenship ?i } UNION { resource:Dolors_Garcia_i_Cornellà property:country_of_citizenship ?i } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5705
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that political territory ?
(Q5705,P1313,c(Q12737077))
action filter_type
action find
entity Q5705
relation P1313
type Q12737077
['Q5705', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5705 property:P1313 ?h . ?h rdf:type ontology:Q12737077 }
Catalonia
action filter_type
action find
entity Catalonia
relation office held by head of government
type occupation
['Catalonia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Catalonia property:office_held_by_head_of_government ?h . ?h rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q5705
SYSTEM
Did you mean Catalonia ?
Q183 Q5705
(Q183,P1313,c(Q12737077)) (Q5705,P1313,c(Q12737077))
[ANSWER]
['Q183', 'P1313', {'concept': 'Q12737077'}] ['Q5705', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5705 property:P1313 ?h . ?h rdf:type ontology:Q12737077 }
Germany Catalonia
Did you mean Catalonia ?
Catalonia
['Germany', 'office held by head of government', {'concept': 'occupation'}] ['Catalonia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Catalonia property:office_held_by_head_of_government ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5705,P1313,c(Q12737077))
['Q5705', 'P1313', {'concept': 'Q12737077'}]
['Catalonia', 'office held by head of government', {'concept': 'occupation'}]
[]
Q16933549
SYSTEM
President of the Generalitat of Catalonia
Q16933549
(Q5705,P1313,c(Q12737077))
action filter_type
action find
entity Q5705
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that political territory
['Q5705', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5705 property:P1313 ?h . ?h rdf:type ontology:Q12737077 }
President of the Generalitat of Catalonia
The President of the Generalitat of Catalonia serves as the political office that is fulfilled by the head of the government of that political territory
President of the Generalitat of Catalonia
action filter_type
action find
entity Catalonia
relation office held by head of government
type occupation
['Catalonia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Catalonia property:office_held_by_head_of_government ?h . ?h rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3745904
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints of more number of occupations than Fiorenzo di Bastia ?
(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 Q3745904
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P417 ?o . ?o rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q3745904 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?y > ?f ) }
Fiorenzo di Bastia
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Fiorenzo di Bastia
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:patron_saint ?o . ?o rdf:type ontology:common_name . ?q rdf:type ontology:occupation } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Fiorenzo_di_Bastia property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?y > ?f ) }
[]
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 Q3745904
relation P417
type Q502895
[ANSWERS] are the names of person who are the patron saints of more number of occupations than Fiorenzo di Bastia
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P417 ?o . ?o rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q3745904 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?y > ?f ) }
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 more number of occupations than Fiorenzo di Bastia
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 Fiorenzo di Bastia
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:patron_saint ?o . ?o rdf:type ontology:common_name . ?q rdf:type ontology:occupation } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Fiorenzo_di_Bastia property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?y > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q196527
P417
Q502895 Q12737077
USER
And how about Saint Wenceslaus I, Duke of Bohemia?
(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 Q196527
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:P417 ?y . ?y rdf:type ontology:Q502895 . ?w rdf:type ontology:Q12737077 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Q196527 property:P417 ?j . ?j rdf:type ontology:Q502895 } } . FILTER ( ?h > ?i ) }
Saint Wenceslaus I, Duke of Bohemia
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Wenceslaus I, Duke of Bohemia
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:patron_saint ?y . ?y rdf:type ontology:common_name . ?w rdf:type ontology:occupation } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Saint_Wenceslaus_I,_Duke_of_Bohemia property:patron_saint ?j . ?j rdf:type ontology:common_name } } . FILTER ( ?h > ?i ) }
[]
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 Q196527
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:P417 ?y . ?y rdf:type ontology:Q502895 . ?w rdf:type ontology:Q12737077 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Q196527 property:P417 ?j . ?j rdf:type ontology:Q502895 } } . FILTER ( ?h > ?i ) }
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 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 Saint Wenceslaus I, Duke of Bohemia
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:patron_saint ?y . ?y rdf:type ontology:common_name . ?w rdf:type ontology:occupation } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Saint_Wenceslaus_I,_Duke_of_Bohemia property:patron_saint ?j . ?j rdf:type ontology:common_name } } . FILTER ( ?h > ?i ) }
[]